|
@@ -26,15 +26,22 @@
|
|
|
// FIXME: check uses GCC specific variadic macros that are non-standard
|
|
|
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
|
|
|
#endif
|
|
|
+
|
|
|
#if defined(__MINGW__) || defined(__GNUC__)
|
|
|
#pragma GCC diagnostic push
|
|
|
+#pragma GCC diagnostic ignored "-Wall"
|
|
|
+/*
|
|
|
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
|
|
|
#pragma GCC diagnostic ignored "-Wno-variadic-macros"
|
|
|
+*/
|
|
|
/* Disable warnings for defining _CRT_SECURE_NO_* (here) and
|
|
|
* _CHECK_CHECK_STDINT_H (in check.h)
|
|
|
*/
|
|
|
+/*
|
|
|
#pragma GCC diagnostic ignored "-Wreserved-id-macro"
|
|
|
+*/
|
|
|
#endif
|
|
|
+
|
|
|
#ifdef _MSC_VER
|
|
|
#undef pid_t
|
|
|
#define pid_t int
|
|
@@ -67,6 +74,10 @@
|
|
|
#define _CRT_SECURE_NO_DEPRECATE
|
|
|
#endif
|
|
|
|
|
|
+#if defined(__MINGW__) || defined(__GNUC__)
|
|
|
+#pragma GCC diagnostic pop
|
|
|
+#endif
|
|
|
+
|
|
|
#ifdef __clang__
|
|
|
/* When using -Weverything, clang does not accept it's own headers
|
|
|
* in a release build configuration. Disable what is too much in
|
|
@@ -74,10 +85,6 @@
|
|
|
#pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
|
|
|
#endif
|
|
|
|
|
|
-#if defined(__MINGW__) || defined(__GNUC__)
|
|
|
-#pragma GCC diagnostic pop
|
|
|
-#endif
|
|
|
-
|
|
|
/* A minimal timeout used for all tests with the "check" framework. */
|
|
|
#define civetweb_min_test_timeout (30)
|
|
|
|