diff --git a/src/benchmark.cc b/src/benchmark.cc index b751b9c3..1c049f28 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -284,10 +284,10 @@ void RunBenchmarks(const std::vector& benchmarks, } // Disable deprecated warnings temporarily because we need to reference -// CSVReporter but don't want to trigger -Werror=-Wdeprecated +// CSVReporter but don't want to trigger -Werror=-Wdeprecated-declarations #ifdef __GNUC__ #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated" +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif std::unique_ptr CreateReporter( diff --git a/test/output_test_helper.cc b/test/output_test_helper.cc index bdb34c87..f99b3a82 100644 --- a/test/output_test_helper.cc +++ b/test/output_test_helper.cc @@ -374,10 +374,10 @@ int SetSubstitutions( } // Disable deprecated warnings temporarily because we need to reference -// CSVReporter but don't want to trigger -Werror=-Wdeprecated +// CSVReporter but don't want to trigger -Werror=-Wdeprecated-declarations #ifdef __GNUC__ #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated" +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif void RunOutputTests(int argc, char* argv[]) { using internal::GetTestCaseList;