mirror of
https://github.com/icculus/DirkSimple.git
synced 2024-05-19 04:20:28 -04:00
cmake: Add more MSVC warning suppressions.
This commit is contained in:
parent
e0534ee8b4
commit
d6a61942c0
|
@ -43,9 +43,12 @@ if(MSVC)
|
|||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
||||
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
|
||||
# !!! FIXME: apply these only to Ogg, Vorbis, and Theora libraries.
|
||||
add_definitions(-wd4244) # possible loss of data
|
||||
add_definitions(-wd4267) # possible loss of data
|
||||
add_definitions(-wd4018) # signed/unsigned mismatch
|
||||
add_definitions(-wd4334) # result of 32-bit shift implicitly converted to 64 bits
|
||||
add_definitions(-wd4305) # truncation from double to float
|
||||
else() # This assumes you have GCC or Clang at the moment.
|
||||
add_definitions(-Wall)
|
||||
if(NOT EMSCRIPTEN AND NOT ANDROID)
|
||||
|
|
Loading…
Reference in a new issue