浏览代码

Disable C4127 in the unit tests

Check uses 'while(0) {}' in it's assert macros. MSVC with /W4 warns
about this.
Matt Clarkson 10 年之前
父节点
当前提交
72d351d348
共有 1 个文件被更改,包括 2 次插入0 次删除
  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>