MSVC: add C4115 and C4189 warnings.
authormano-wii <germano.costa@ig.com.br>
Fri, 22 Mar 2019 19:15:46 +0000 (16:15 -0300)
committermano-wii <germano.costa@ig.com.br>
Fri, 22 Mar 2019 19:15:46 +0000 (16:15 -0300)
This matches the warnings of the other compilers commonly used in Blender.

CMakeLists.txt

index a71677c..c10d433 100644 (file)
@@ -1517,6 +1517,8 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC")
                # warning level:
                "/W3"
                "/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:
                "/wd4018"  # signed/unsigned mismatch
                "/wd4146"  # unary minus operator applied to unsigned type, result still unsigned