[nginx] svn commit: r5121 - trunk/src/os/win32
vbart at nginx.com
vbart at nginx.com
Wed Mar 20 10:18:27 UTC 2013
Author: vbart
Date: 2013-03-20 10:18:26 +0000 (Wed, 20 Mar 2013)
New Revision: 5121
URL: http://trac.nginx.org/nginx/changeset/5121/nginx
Log:
Win32: disabled MSVC warning about '\0' not fitting into array.
We believe that this warning produces more inconvience than real benefit.
Here is an example to trigger:
u_char a[4] = "test";
Modified:
trunk/src/os/win32/ngx_win32_config.h
Modified: trunk/src/os/win32/ngx_win32_config.h
===================================================================
--- trunk/src/os/win32/ngx_win32_config.h 2013-03-20 09:36:27 UTC (rev 5120)
+++ trunk/src/os/win32/ngx_win32_config.h 2013-03-20 10:18:26 UTC (rev 5121)
@@ -70,6 +70,9 @@
/* 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
More information about the nginx-devel
mailing list