diff options
author | Valentin Bartenev <vbart@nginx.com> | 2013-03-20 10:18:26 +0000 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2013-03-20 10:18:26 +0000 |
commit | cf64a6c5361b23f1aa182e50537ebb4c6c34c453 (patch) | |
tree | bbdfb8661df60ea8d342e8d7d3154707b131237b /src | |
parent | fb6f8c45097408e1730f5b6b6eada8573b216967 (diff) | |
download | nginx-cf64a6c5361b23f1aa182e50537ebb4c6c34c453.tar.gz nginx-cf64a6c5361b23f1aa182e50537ebb4c6c34c453.zip |
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";
Diffstat (limited to 'src')
-rw-r--r-- | src/os/win32/ngx_win32_config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h index 1ebbf8631..3f3b3e3fa 100644 --- 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 |