Mark benchmark state variables in for loops as unused in benchmarks

Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
Chris Burel
2022-02-10 13:00:49 -08:00
parent 36487c1588
commit 664403c5de
38 changed files with 572 additions and 572 deletions
@@ -181,7 +181,7 @@ namespace UnitTest
SurfaceData::SurfaceTagVector filterTags = CreateBenchmarkTagFilterList();
// Query every point in our world at 1 meter intervals.
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
// This is declared outside the loop so that the list of points doesn't fully reallocate on every query.
SurfaceData::SurfacePointList points;
@@ -211,7 +211,7 @@ namespace UnitTest
SurfaceData::SurfaceTagVector filterTags = CreateBenchmarkTagFilterList();
// Query every point in our world at 1 meter intervals.
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
SurfaceData::SurfacePointLists points;
@@ -235,7 +235,7 @@ namespace UnitTest
SurfaceData::SurfaceTagVector filterTags = CreateBenchmarkTagFilterList();
// Query every point in our world at 1 meter intervals.
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
AZStd::vector<AZ::Vector3> queryPositions;
queryPositions.reserve(worldSizeInt * worldSizeInt);