ソースを参照

Unit test: disable some warnings from the test framework

bel2125 8 年 前
コミット
2074241d1d
1 ファイル変更11 行追加0 行削除
  1. 11 0
      test/civetweb_check.h

+ 11 - 0
test/civetweb_check.h

@@ -26,6 +26,13 @@
 // 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
+/* Disable warnings for defining _CRT_SECURE_NO_* (here) and
+ * _CHECK_CHECK_STDINT_H (in check.h)
+ */
+#pragma clang diagnostic ignored "-Wreserved-id-macro"
+#endif
 #ifdef _MSC_VER
 #undef pid_t
 #define pid_t int
@@ -65,6 +72,10 @@
 #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)