[Bf-blender-cvs] [6fa7fa6671c] blender2.8: MSVC: Set the warning C4189 from level 4 to level 3
mano-wii
noreply at git.blender.org
Wed Aug 29 19:18:07 CEST 2018
Commit: 6fa7fa6671c9e7cf9baad54b0f0861755b43f2b1
Author: mano-wii
Date: Wed Aug 29 13:08:00 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB6fa7fa6671c9e7cf9baad54b0f0861755b43f2b1
MSVC: Set the warning C4189 from level 4 to level 3
This is a useful warning and there is an equivalent used in `GNUC` and `clang` compilers.
Reviewed on IRC by @brecht and @LazyDodo
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ccc6a1e9d14..7e3b1c79da4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1450,6 +1450,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC")
# warning level:
"/W3"
"/w34062" # switch statement contains 'default' but no 'case' labels
+ "/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