瀏覽代碼

Unit test: disable some warnings from the test framework

bel2125 8 年之前
父節點
當前提交
0a3d8176a2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      test/civetweb_check.h

+ 2 - 1
test/civetweb_check.h

@@ -28,10 +28,11 @@
 #endif
 #if defined(__MINGW__) || defined(__GNUC__)
 #pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wno-variadic-macros"
 /* Disable warnings for defining _CRT_SECURE_NO_* (here) and
  * _CHECK_CHECK_STDINT_H (in check.h)
  */
-#pragma clang diagnostic ignored "-Wreserved-id-macro"
+#pragma GCC diagnostic ignored "-Wreserved-id-macro"
 #endif
 #ifdef _MSC_VER
 #undef pid_t