Browse Source

Disable MSVC warnings

Matt Clarkson 10 năm trước cách đây
mục cha
commit
6e09f78439
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      src/civetweb.c

+ 8 - 0
src/civetweb.c

@@ -59,6 +59,14 @@
 #pragma warning(disable : 4127)
 /* non-constant aggregate initializer: issued due to missing C99 support */
 #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
 
 /* This code uses static_assert to check some conditions.