diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index af8ac78424..6b8da4f66c 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -2768,7 +2768,8 @@ class Benchmark { fprintf(stdout, "------------------------------------------------\n"); } - void PrintWarnings(bool first_group, const char* compression) { + void PrintWarnings([[maybe_unused]] bool first_group, + const char* compression) { #if defined(__GNUC__) && !defined(__OPTIMIZE__) if (first_group) { fprintf(