Explorar el Código

Disable MSVC warnings

Matt Clarkson hace 10 años
padre
commit
6e09f78439
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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.