From 4e21e8411eb7b7357050cb6fe1d184b1ceab6ee4 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 17 May 2018 00:40:23 -0700 Subject: [PATCH] test: surpress some overly pedantic clang warnings --- test/shared/test-util.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/shared/test-util.h b/test/shared/test-util.h index 6cd6808..c9c9dd3 100644 --- a/test/shared/test-util.h +++ b/test/shared/test-util.h @@ -1,6 +1,12 @@ #ifndef TEST_UTIL_H_ #define TEST_UTIL_H_ +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wbad-function-cast" +#pragma clang diagnostic ignored "-Wcast-qual" +#pragma clang diagnostic ignored "-Wformat-non-iso" +#endif + #ifdef _MSC_VER #define no_return __declspec(noreturn) #else /* GCC/clang */