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:
dhewg 2012-01-07 18:59:06 +01:00 committed by Daniel Gibson
parent a1430d546f
commit f5db1e5dcf

View file

@ -201,6 +201,10 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
endif()
elseif (MSVC)
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(/wd4996) # 'function': was declared deprecated
set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG /Od /Zi /MDd")