mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- set warning flags for MSVC based on warning level 3.
This commit is contained in:
parent
f4c8ac0140
commit
830ded6e87
1 changed files with 2 additions and 4 deletions
|
@ -23,11 +23,9 @@ if( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
|
|||
endif()
|
||||
endif()
|
||||
|
||||
# Build does not work with signed chars! Also set a stricter warning level, but silence the pointless and annoying parts of level 4 (Intentionally only for C++! The C code we use is too old and would warn too much)
|
||||
# Build does not work with signed chars!
|
||||
if (MSVC)
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /J /W3 /wd4100 /wd4127 /wd4131 /wd4201 /wd4210 /wd4245 /wd4324 /wd4389 /wd4505 /wd4706 /wd4458 /wd4459" )
|
||||
#set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244" )
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4189" ) # "unused initialized local variable" - useful warning that creates too much noise in external or macro based code. Can be enabled for cleanup passes on the code.
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /J /W3" )
|
||||
else()
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -funsigned-char -Wno-missing-braces -Wno-char-subscripts -Wno-unused-variable" )
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue