MSVC: add more warnings to match OSX/Linux

This commit is contained in:
Campbell Barton
2014-02-19 18:05:37 +11:00
parent d76bcf98a3
commit a6b87853cb
3 changed files with 4 additions and 2 deletions

View File

@@ -1004,6 +1004,7 @@ elseif(WIN32)
set(_WARNINGS
# warning level:
"/W3"
"/w34062" # switch statement contains 'default' but no 'case' labels
# disable:
"/wd4018" # signed/unsigned mismatch
"/wd4065" # switch statement contains 'default' but no 'case' labels
@@ -1016,6 +1017,7 @@ elseif(WIN32)
"/wd4800" # forcing value to bool 'true' or 'false'
# errors:
"/we4013" # 'function' undefined; assuming extern returning int
"/we4431" # missing type specifier - int assumed
)
string(REPLACE ";" " " _WARNINGS "${_WARNINGS}")