summaryrefslogtreecommitdiffstats
path: root/lib/benchmark/src/benchmark.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/benchmark/src/benchmark.cc')
-rw-r--r--lib/benchmark/src/benchmark.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/benchmark/src/benchmark.cc b/lib/benchmark/src/benchmark.cc
index a086453a94..5cb28b73fe 100644
--- a/lib/benchmark/src/benchmark.cc
+++ b/lib/benchmark/src/benchmark.cc
@@ -378,7 +378,7 @@ void RunBenchmarks(const std::vector<BenchmarkInstance>& benchmarks,
// Disable deprecated warnings temporarily because we need to reference
// CSVReporter but don't want to trigger -Werror=-Wdeprecated-declarations
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif