comparison src/os/win32/ngx_win32_config.h @ 8067:b347fe705ff2

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 07 Sep 2022 00:47:07 +0300
parents d1aa8cc3e387
children 514c518b9d6c
comparison
equal deleted inserted replaced
8066:d1aa8cc3e387 8067:b347fe705ff2
101 /* conversion from 'size_t' to 'type', possible loss of data */ 101 /* conversion from 'size_t' to 'type', possible loss of data */
102 #pragma warning(disable:4267) 102 #pragma warning(disable:4267)
103 103
104 /* array is too small to include a terminating null character */ 104 /* array is too small to include a terminating null character */
105 #pragma warning(disable:4295) 105 #pragma warning(disable:4295)
106
107 /* conversion from 'type1' to 'type2' of greater size */
108 #pragma warning(disable:4306)
106 109
107 #endif 110 #endif
108 111
109 112
110 #ifdef __WATCOMC__ 113 #ifdef __WATCOMC__