[Bf-blender-cvs] [46af314] master: CMake: disable warning 4146

Campbell Barton noreply at git.blender.org
Mon Dec 21 04:55:42 CET 2015


Commit: 46af314bd96a9d1e267698df5c074dd4fc4cc6e2
Author: Campbell Barton
Date:   Mon Dec 21 14:54:36 2015 +1100
Branches: master
https://developer.blender.org/rB46af314bd96a9d1e267698df5c074dd4fc4cc6e2

CMake: disable warning 4146

This is warning on noisy (false positives).

===================================================================

M	CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 354e4ad..14248d6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2738,6 +2738,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC")
 		"/w34062"  # switch statement contains 'default' but no 'case' labels
 		# disable:
 		"/wd4018"  # signed/unsigned mismatch
+		"/wd4146"  # unary minus operator applied to unsigned type, result still unsigned
 		"/wd4065"  # switch statement contains 'default' but no 'case' labels
 		"/wd4127"  # conditional expression is constant
 		"/wd4181"  # qualifier applied to reference type; ignored




More information about the Bf-blender-cvs mailing list