mirror of
https://github.com/nginx/nginx.git
synced 2025-01-06 22:23:00 -06:00
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.
This commit is contained in:
parent
a3016da23f
commit
90f1b5fd08
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user