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
@@ -21,7 +21,7 @@ namespace Benchmark
CreateFakePaths(numInstances);
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
state.PauseTiming();
@@ -60,7 +60,7 @@ namespace Benchmark
{
const unsigned int numEntities = static_cast<unsigned int>(state.range());
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
state.PauseTiming();
@@ -100,7 +100,7 @@ namespace Benchmark
// plus the instance receiving them
CreateFakePaths(numInstancesToAdd + 1);
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
state.PauseTiming();
@@ -150,7 +150,7 @@ namespace Benchmark
// plus the root instance
CreateFakePaths(numInstances + 1);
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
state.PauseTiming();