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
+3 -3
View File
@@ -677,7 +677,7 @@ namespace Benchmark
[]
{
});
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
TaskGraphEvent ev;
graph->SubmitOnExecutor(*executor, &ev);
@@ -699,7 +699,7 @@ namespace Benchmark
});
a.Precedes(b);
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
TaskGraphEvent ev;
graph->SubmitOnExecutor(*executor, &ev);
@@ -729,7 +729,7 @@ namespace Benchmark
e.Follows(a, b, c, d);
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
TaskGraphEvent ev;
graph->SubmitOnExecutor(*executor, &ev);