From edcb5415a275cd121b49972fa8baead4b43cad4d Mon Sep 17 00:00:00 2001 From: mano-wii Date: Fri, 22 Mar 2019 16:15:46 -0300 Subject: [PATCH] MSVC: add C4115 and C4189 warnings. This matches the warnings of the other compilers commonly used in Blender. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a71677c0308..c10d433813a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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