瀏覽代碼

Disable MSVC warnings

Matt Clarkson 10 年之前
父節點
當前提交
6e09f78439
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/civetweb.c

+ 8 - 0
src/civetweb.c

@@ -59,6 +59,14 @@
 #pragma warning(disable : 4127)
 #pragma warning(disable : 4127)
 /* non-constant aggregate initializer: issued due to missing C99 support */
 /* non-constant aggregate initializer: issued due to missing C99 support */
 #pragma warning(disable : 4204)
 #pragma warning(disable : 4204)
+/* padding added after data member */
+#pragma warning (disable : 4820)
+/* not defined as a preprocessor macro, replacing with '0' for '#if/#elif' */
+#pragma warning (disable : 4668)
+/* no function prototype given: converting '()' to '(void)' */
+#pragma warning (disable : 4255)
+/* function has been selected for automatic inline expansion */
+#pragma warning (disable : 4711)
 #endif
 #endif
 
 
 /* This code uses static_assert to check some conditions.
 /* This code uses static_assert to check some conditions.