From f5b3510fa4018e50b6a4ec0fd6f5f596fde33c05 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Wed, 11 Sep 2013 19:25:48 +0000 Subject: [PATCH] [CMAKE] - Improve MSVC warning settings svn path=/trunk/; revision=60041 --- reactos/cmake/msvc.cmake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/reactos/cmake/msvc.cmake b/reactos/cmake/msvc.cmake index edbbf184f97..9e8000e71e7 100644 --- a/reactos/cmake/msvc.cmake +++ b/reactos/cmake/msvc.cmake @@ -23,13 +23,17 @@ add_definitions(/Dinline=__inline /D__STDC__=1) add_compile_flags("/X /GR- /EHs-c- /GS- /Zl /W3") # HACK: for VS 11+ we need to explicitly disable SSE, which is off by -# default for older compilers. See bug #7174 +# default for older compilers. See CORE-6507 if (MSVC_VERSION GREATER 1699 AND ARCH STREQUAL "i386") add_compile_flags("/arch:IA32") endif () -# C4700 is almost always likely to result in broken code, so mark it as an error -add_compile_flags("/we4700") +# C++ exception specification ignored... yeah we don't care +add_compile_flags("/wd4290") + +# different level of indirection, void function returning a value and +# uninitialized variable usage should be errors. +add_compile_flags("/we4047 /we4098 /we4700") # Debugging #if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")