Browse Source

Disable C4127 in the unit tests

Check uses 'while(0) {}' in it's assert macros. MSVC with /W4 warns
about this.
Matt Clarkson 10 years ago
parent
commit
72d351d348
1 changed files with 2 additions and 0 deletions
  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>