Parcourir la source

Disable C4127 in the unit tests

Check uses 'while(0) {}' in it's assert macros. MSVC with /W4 warns
about this.
Matt Clarkson il y a 10 ans
Parent
commit
72d351d348
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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>