Unverified Commit 8cead007 by Keith Moyer Committed by GitHub

Remove warnings for internal use of CSVReporter (#956)

In a previous commit[1], diagnostic pragmas were used to avoid this warning. However, the incorrect warning flag was indicated, leaving the warning in place. -Wdeprecated is for deprecated features while -Wdeprecated-declarations for deprecated functions, variables, and types[2]. [1] c4084619 [2] https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
parent a77d5f70
......@@ -284,10 +284,10 @@ 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
// 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<BenchmarkReporter> CreateReporter(
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment