mirror of
https://github.com/google/benchmark.git
synced 2025-03-09 16:50: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"
|
||||
|
||||
// clang fails with -Werror because IsZero() is not used in this library
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-function"
|
||||
#ifdef __clang__
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
#include "../src/benchmark_api_internal.h" // IsZero() is provided here
|
||||
#pragma clang diagnostic pop
|
||||
#ifdef __clang__
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
// ========================================================================= //
|
||||
// ------------------------------ Internals -------------------------------- //
|
||||
|
Loading…
Reference in New Issue
Block a user