Selaa lähdekoodia

Disable C4127 in the unit tests

Check uses 'while(0) {}' in it's assert macros. MSVC with /W4 warns
about this.
Matt Clarkson 10 vuotta sitten
vanhempi
commit
72d351d348
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      test/civetweb_check.h

+ 2 - 0
test/civetweb_check.h

@@ -32,6 +32,8 @@
 #define pid_t int
 /* Unreferenced formal parameter. START_TEST has _i */
 #pragma warning(disable: 4100)
+/* conditional expression is constant . asserts use while(0) */
+#pragma warning(disable: 4127)
 #endif
 #include <stdint.h>
 #include <check.h>