From 15791b28bdfb8db5fb1eb9dadc6f3744dfee534b Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Sat, 9 Feb 2013 21:02:49 -0500 Subject: [PATCH] cmake: ignore MSVC C4350 and C4548 warnings These warnings are being triggered from inside VC's header files. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d40168e..a06548e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,12 @@ elseif(MSVC) list(APPEND OSD_COMPILER_FLAGS /W3 # Use warning level recommended for production purposes. /WX # Treat all compiler warnings as errors. + + # these warnings are being triggered from inside VC's header files + # warning C4350: behavior change: 'member1' called instead of 'member2' + /wd 4350 + # warning C4548: expression before comma has no effect; expected expression with side-effect + /wd 4548 # Make sure WinDef.h does not define min and max macros which # will conflict with std::min() and std::max().