Commit 17354131 by Joao Paulo Magalhaes

Fix pragma clang ignore with gcc.

parent 160770fd
...@@ -9,10 +9,14 @@ ...@@ -9,10 +9,14 @@
#include "output_test.h" #include "output_test.h"
// clang fails with -Werror because IsZero() is not used in this library // clang fails with -Werror because IsZero() is not used in this library
#pragma clang diagnostic push #ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-function" # pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunused-function"
#endif
#include "../src/benchmark_api_internal.h" // IsZero() is provided here #include "../src/benchmark_api_internal.h" // IsZero() is provided here
#pragma clang diagnostic pop #ifdef __clang__
# pragma clang diagnostic pop
#endif
// ========================================================================= // // ========================================================================= //
// ------------------------------ Internals -------------------------------- // // ------------------------------ Internals -------------------------------- //
......
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