Merge pull request #120 from andrewkww/vs2012_warnings_vc_headers

cmake: ignore MSVC C4350 and C4548 warnings
This commit is contained in:
Manuel Kraemer 2013-02-12 17:27:02 -08:00
commit 20946b8923

View File

@ -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().