test: surpress some overly pedantic clang warnings
This commit is contained in:
parent
cb50462b77
commit
4e21e8411e
@ -1,6 +1,12 @@
|
|||||||
#ifndef TEST_UTIL_H_
|
#ifndef TEST_UTIL_H_
|
||||||
#define 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
|
#ifdef _MSC_VER
|
||||||
#define no_return __declspec(noreturn)
|
#define no_return __declspec(noreturn)
|
||||||
#else /* GCC/clang */
|
#else /* GCC/clang */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user