From 03a858d4fab0846e79a624f4dedb5d607b9ed6d7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 21 Jun 2020 19:30:22 -0400 Subject: [PATCH] General: Silence some unused variables These are checked in asserts that aren't present in release builds. --- src/Core/Resource/Factory/CUnsupportedParticleLoader.cpp | 2 +- src/Core/Resource/Script/Property/CStructProperty.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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())