mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2025-02-16 17:11:24 +00:00
Disable a few MSVC warnings
These just spam the console. Some are useless, some need to be looked at at some point.
This commit is contained in:
parent
a1430d546f
commit
f5db1e5dcf
1 changed files with 4 additions and 0 deletions
|
@ -201,6 +201,10 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||||
endif()
|
endif()
|
||||||
elseif (MSVC)
|
elseif (MSVC)
|
||||||
add_definitions(/W4)
|
add_definitions(/W4)
|
||||||
|
add_definitions(/wd4100) # unreferenced formal parameter
|
||||||
|
add_definitions(/wd4127) # conditional expression is constant
|
||||||
|
add_definitions(/wd4244) # possible loss of data
|
||||||
|
add_definitions(/wd4245) # signed/unsigned mismatch
|
||||||
add_definitions(/wd4714) # 'function' marked as __forceinline not inlined
|
add_definitions(/wd4714) # 'function' marked as __forceinline not inlined
|
||||||
add_definitions(/wd4996) # 'function': was declared deprecated
|
add_definitions(/wd4996) # 'function': was declared deprecated
|
||||||
set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG /Od /Zi /MDd")
|
set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG /Od /Zi /MDd")
|
||||||
|
|
Loading…
Reference in a new issue