@@ -287,7 +287,7 @@ void associative_container_benchmarks(std::string container) {
287287 }
288288 Container c (small.begin (), small.end ());
289289
290- for (auto _ : st) {
290+ for ([[maybe_unused]] auto _ : st) {
291291 c.insert (in.begin (), in.end ());
292292 benchmark::DoNotOptimize (c);
293293 benchmark::ClobberMemory ();
@@ -310,7 +310,7 @@ void associative_container_benchmarks(std::string container) {
310310 }
311311 Container c (small.begin (), small.end ());
312312
313- for (auto _ : st) {
313+ for ([[maybe_unused]] auto _ : st) {
314314 c.insert (in.begin (), in.end ());
315315 benchmark::DoNotOptimize (c);
316316 benchmark::ClobberMemory ();
@@ -403,7 +403,7 @@ void associative_container_benchmarks(std::string container) {
403403
404404 auto first = std::next (c.begin (), c.size () / 4 );
405405 auto last = std::next (c.begin (), 3 * (c.size () / 4 ));
406- for (auto _ : st) {
406+ for ([[maybe_unused]] auto _ : st) {
407407 auto result = c.erase (first, last);
408408 benchmark::DoNotOptimize (result);
409409 benchmark::DoNotOptimize (c);
@@ -422,7 +422,7 @@ void associative_container_benchmarks(std::string container) {
422422 std::vector<Value> in = make_value_types (generate_unique_keys (size));
423423 Container c (in.begin (), in.end ());
424424
425- for (auto _ : st) {
425+ for ([[maybe_unused]] auto _ : st) {
426426 c.clear ();
427427 benchmark::DoNotOptimize (c);
428428 benchmark::ClobberMemory ();
0 commit comments