MSVC: add C4115 and C4189 warnings.

This matches the warnings of the other compilers commonly used in Blender.
This commit is contained in:
mano-wii
2019-03-22 16:15:46 -03:00
parent 9e3e92a908
commit edcb5415a2

View File

@@ -1517,6 +1517,8 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC")
# warning level: # warning level:
"/W3" "/W3"
"/w34062" # switch statement contains 'default' but no 'case' labels "/w34062" # switch statement contains 'default' but no 'case' labels
"/w34115" # 'type' : named type definition in parentheses
"/w34189" # local variable is initialized but not referenced
# disable: # disable:
"/wd4018" # signed/unsigned mismatch "/wd4018" # signed/unsigned mismatch
"/wd4146" # unary minus operator applied to unsigned type, result still unsigned "/wd4146" # unary minus operator applied to unsigned type, result still unsigned