Fix pragma clang ignore with gcc.

This commit is contained in:
Joao Paulo Magalhaes 2017-05-02 23:35:46 +01:00
parent 160770fd08
commit 1735413188

View File

@ -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 -------------------------------- //