From f5db1e5dcfaeea533d11a41b123a678336870500 Mon Sep 17 00:00:00 2001 From: dhewg Date: Sat, 7 Jan 2012 18:59:06 +0100 Subject: [PATCH] Disable a few MSVC warnings These just spam the console. Some are useless, some need to be looked at at some point. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4175549..d2720a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")