cmake: Add more MSVC warning suppressions.

This commit is contained in:
Ryan C. Gordon 2023-06-30 21:15:03 -04:00
parent e0534ee8b4
commit d6a61942c0
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

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