@@ -107,26 +107,23 @@ if(MSVC)
107107 message (STATUS "Using [${CMAKE_C_COMPILER_ID} ] compiler" )
108108 if (CMAKE_C_COMPILER_ID MATCHES "MSVC" )
109109 set (MSVC_DISABLED_WARNINGS_LIST
110- "C4057 " # C4057: 'initializing ' : ' unsigned char *' differs in
111- # indirection to slightly different base types from 'char [2]'
112- "C4018" # '>=': signed/unsigned mismatch
113- "C4100" # 'exarg ' : unreferenced formal parameter
110+ "C4018 " # 'expression ' : signed/ unsigned mismatch
111+ "C4057" # 'operator' : 'identifier1' indirection to
112+ # slightly different base types from 'identifier2'
113+ "C4100" # 'identifier ' : unreferenced formal parameter
114114 "C4127" # conditional expression is constant
115- "C4146" # unary minus operator applied to unsigned
116- # type, result still unsigned
117- "C4242" # 'function' : conversion from 'int' to 'uint8_t',
118- # possible loss of data
119- "C4244" # 'function' : conversion from 'int' to 'uint8_t',
120- # possible loss of data
121- "C4245" # 'initializing': conversion from 'long' to
122- # 'unsigned long', signed/unsigned mismatch
123- "C4267" # conversion from 'size_t' to 'some type that is almost
124- # certainly safe to convert a size_t to'.
125- "C4389" # '!=': signed/unsigned mismatch
115+ "C4146" # unary minus operator applied to unsigned type,
116+ # result still unsigned
117+ "C4244" # 'argument' : conversion from 'type1' to 'type2',
118+ # possible loss of data
119+ "C4245" # 'conversion' : conversion from 'type1' to 'type2',
120+ # signed/unsigned mismatch
121+ "C4267" # 'var' : conversion from 'size_t' to 'type',
122+ # possible loss of data
123+ "C4389" # 'operator' : signed/unsigned mismatch
126124 "C4706" # assignment within conditional expression
127- "C4820" # 'bytes' bytes padding added after construct 'member_name'
128- "C4996" # 'read': The POSIX name for this item is deprecated. Instead,
129- # use the ISO C++ conformant name: _read.
125+ "C4996" # The POSIX name for this item is deprecated.
126+ # Instead, use the ISO C and C++ conformant name
130127 )
131128 elseif (CMAKE_C_COMPILER_ID MATCHES "Intel" )
132129 add_definitions (-D_CRT_SUPPRESS_RESTRICT)
0 commit comments