Jelajahi Sumber

Unit test: disable some warnings from the test framework

bel2125 8 tahun lalu
induk
melakukan
0a3d8176a2
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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