Clang 13: Fix build errors ...

... due to local variables only being written to (but never read).

Signed-off-by: Daniel Edwards <dev@danieledwards.de>
This commit is contained in:
Daniel Edwards
2022-01-22 14:36:20 +01:00
parent 878ba24a3f
commit 0a5f472f43
42 changed files with 50 additions and 50 deletions
@@ -123,7 +123,7 @@ namespace EMotionFX
TargetType* targetBuffer = static_cast<TargetType*>(targetVertexAttributeLayer->GetData());
// Fill the vertex attribute layer by iterating through the Atom meshes and copying over the vertex data for each.
size_t addedElements = 0;
[[maybe_unused]] size_t addedElements = 0;
for (const AZ::RPI::ModelLodAsset::Mesh& atomMesh : sourceModelLod->GetMeshes())
{
const uint32_t atomMeshVertexCount = atomMesh.GetVertexCount();
@@ -863,7 +863,7 @@ namespace EMotionFX
}
// process all objects for this frame
size_t totalBytesRead = 0;
[[maybe_unused]] size_t totalBytesRead = 0;
const size_t numObjects = frameObjects.size();
for (size_t a = 0; a < numObjects; ++a)
{