# HG changeset patch # User Valentin Bartenev # Date 1363774706 0 # Node ID 7956af6b6a026479aa0aa1ea6d2c5d99ffc281a3 # Parent f10108c92fefef58c0aa820bf3ae0fe40c37adf9 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"; diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h --- 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