]> git.kaiwu.me - nginx.git/commitdiff
Win32: disabled MSVC warning about '\0' not fitting into array.
authorValentin Bartenev <vbart@nginx.com>
Wed, 20 Mar 2013 10:18:26 +0000 (10:18 +0000)
committerValentin Bartenev <vbart@nginx.com>
Wed, 20 Mar 2013 10:18:26 +0000 (10:18 +0000)
We believe that this warning produces more inconvience than real benefit.
Here is an example to trigger:

  u_char a[4] = "test";

src/os/win32/ngx_win32_config.h

index 1ebbf86312e391bfe8a3817adb1191296fde0636..3f3b3e3faa8d672ec02696779b6918b139debdb6 100644 (file)
@@ -70,6 +70,9 @@ typedef long  time_t;
 /* FD_SET() and FD_CLR(): conditional expression is constant */
 #pragma warning(disable:4127)
 
+/* array is too small to include a terminating null character */
+#pragma warning(disable:4295)
+
 #endif