summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2022-09-07 00:47:07 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2022-09-07 00:47:07 +0300
commit90f1b5fd08e9aca01d568d6653da772980033e43 (patch)
treec99d62889fb4f71aa16decf74a3b478868e93d49
parenta3016da23f1f05961c77cae05b9731931d01ebe4 (diff)
downloadnginx-90f1b5fd08e9aca01d568d6653da772980033e43.tar.gz
Win32: disabled C4306 warnings with MSVC.
Multiple C4306 warnings (conversion from 'type1' to 'type2' of greater size) appear during 64-bit compilation with MSVC 2010 (and older) due to extensively used constructs like "(void *) -1", so they were disabled. In newer MSVC versions C4306 warnings were replaced with C4312 ones, and these are not generated for such trivial type casts.
-rw-r--r--src/os/win32/ngx_win32_config.h3
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 dcd45fb25..406003a78 100644
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -104,6 +104,9 @@ typedef long time_t;
/* array is too small to include a terminating null character */
#pragma warning(disable:4295)
+/* conversion from 'type1' to 'type2' of greater size */
+#pragma warning(disable:4306)
+
#endif