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
@@ -24,7 +24,7 @@ namespace Benchmark
const auto& nestedTemplatePath = m_paths.front();
const auto& enclosingTemplatePath = m_paths.back();
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
state.PauseTiming();
@@ -85,7 +85,7 @@ namespace Benchmark
const unsigned int numInstances = maxDepth;
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
state.PauseTiming();
@@ -137,7 +137,7 @@ namespace Benchmark
const unsigned int numInstances = numRootInstances * maxDepth;
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
state.PauseTiming();
@@ -197,7 +197,7 @@ namespace Benchmark
const unsigned int numInstances = (1 << maxDepth) - 1;
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
state.PauseTiming();