Mercurial > hg > nginx
diff src/os/win32/ngx_win32_config.h @ 5120:7956af6b6a02
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";
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 20 Mar 2013 10:18:26 +0000 |
parents | eaf95350d75c |
children | 626f288fa5ed |
line wrap: on
line diff
--- a/src/os/win32/ngx_win32_config.h +++ b/src/os/win32/ngx_win32_config.h @@ -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