diff --git a/src/Core/Resource/Factory/CUnsupportedParticleLoader.cpp b/src/Core/Resource/Factory/CUnsupportedParticleLoader.cpp index ab52b31f..6c444fc0 100644 --- a/src/Core/Resource/Factory/CUnsupportedParticleLoader.cpp +++ b/src/Core/Resource/Factory/CUnsupportedParticleLoader.cpp @@ -999,7 +999,7 @@ void CUnsupportedParticleLoader::ParseIntFunction(IInputStream& rFile) case FOURCC('CNST'): { - uint32 Value = rFile.ReadLong(); + [[maybe_unused]] const uint32 Value = rFile.ReadULong(); ASSERT(gpResourceStore->FindEntry(CAssetID(Value)) == nullptr); break; } diff --git a/src/Core/Resource/Script/Property/CStructProperty.cpp b/src/Core/Resource/Script/Property/CStructProperty.cpp index c3f8000f..4343d904 100644 --- a/src/Core/Resource/Script/Property/CStructProperty.cpp +++ b/src/Core/Resource/Script/Property/CStructProperty.cpp @@ -97,7 +97,7 @@ void CStructProperty::Serialize(IArchive& rArc) // Serialize archetype if (mpArchetype) { - CStructProperty* pArchetype = static_cast(mpArchetype); + [[maybe_unused]] const CStructProperty* pArchetype = static_cast(mpArchetype); ASSERT(pArchetype != nullptr); if (rArc.IsReader())