[Bf-blender-cvs] [edcb5415a27] blender2.7: MSVC: add C4115 and C4189 warnings.
mano-wii
noreply at git.blender.org
Fri Mar 22 20:16:19 CET 2019
Commit: edcb5415a275cd121b49972fa8baead4b43cad4d
Author: mano-wii
Date: Fri Mar 22 16:15:46 2019 -0300
Branches: blender2.7
https://developer.blender.org/rBedcb5415a275cd121b49972fa8baead4b43cad4d
MSVC: add C4115 and C4189 warnings.
This matches the warnings of the other compilers commonly used in Blender.
===================================================================
M CMakeLists.txt
===================================================================
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
More information about the Bf-blender-cvs
mailing list