mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-29 11:11:14 +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
|
||||
/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().
|
||||
|
Loading…
Reference in New Issue
Block a user