CMake: disable warning 4146
authorCampbell Barton <ideasman42@gmail.com>
Mon, 21 Dec 2015 03:54:36 +0000 (14:54 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 21 Dec 2015 03:54:36 +0000 (14:54 +1100)
This is warning on noisy (false positives).

CMakeLists.txt

index 354e4adb0d7fab99ce70d5dd0ae16a447e3cbba0..14248d6da3ade25b6aaed71853c8b041c74a8be9 100644 (file)
@@ -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