Mark benchmark state variables in for loops as unused in benchmarks
Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user