diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-08-29 19:08:00 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-08-29 19:59:04 +0300 |
commit | 6fa7fa6671c9e7cf9baad54b0f0861755b43f2b1 (patch) | |
tree | 833a14f91638724026805c5b224f5080bfaccedb /CMakeLists.txt | |
parent | 3a87641aa8cab7ba15e17b8e8ee2a218c03bb2e0 (diff) |
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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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 |