mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-17 03:30:06 +00:00
Merge pull request #120 from andrewkww/vs2012_warnings_vc_headers
cmake: ignore MSVC C4350 and C4548 warnings
This commit is contained in:
commit
20946b8923
@ -167,6 +167,12 @@ elseif(MSVC)
|
|||||||
list(APPEND OSD_COMPILER_FLAGS
|
list(APPEND OSD_COMPILER_FLAGS
|
||||||
/W3 # Use warning level recommended for production purposes.
|
/W3 # Use warning level recommended for production purposes.
|
||||||
/WX # Treat all compiler warnings as errors.
|
/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
|
# Make sure WinDef.h does not define min and max macros which
|
||||||
# will conflict with std::min() and std::max().
|
# will conflict with std::min() and std::max().
|
||||||
|
Loading…
Reference in New Issue
Block a user