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
This commit is contained in:
Germano Cavalcante 2018-08-29 13:08:00 -03:00
parent 3a87641aa8
commit 6fa7fa6671
1 changed files with 1 additions and 0 deletions

View File

@ -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