test: surpress some overly pedantic clang warnings

This commit is contained in:
Bert Belder 2018-05-17 00:40:23 -07:00
parent cb50462b77
commit 4e21e8411e
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

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