mirror of
https://github.com/google/benchmark.git
synced 2025-03-10 01:00:08 +08:00
Fix pragma clang ignore with gcc.
This commit is contained in:
parent
160770fd08
commit
1735413188
@ -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 -------------------------------- //
|
||||||
|
Loading…
Reference in New Issue
Block a user