File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -322,13 +322,24 @@ if(CLR_CMAKE_PLATFORM_XPLAT)
322322 -Wno-return-type\
323323 -Wno-switch\
324324 -Wno-implicit-function-declaration\
325- -Wno-int-to-pointer-cast"
325+ -Wno-int-to-pointer-cast\
326+ -Wno-tautological-constant-compare\
327+ -Wno-enum-compare-switch\
328+ -Wno-unknown-warning-option"
326329 )
327330 # notes..
328331 # -Wno-address-of-temporary # vtinfo.h, VirtualTableInfo<T>::RegisterVirtualTable
329332 # -Wno-null-conversion # Check shmemory.cpp and cs.cpp here...
330333 # -Wno-return-type # switch unreachable code
331334 # -Wno-switch # switch values not handled
335+ # -W-enum-compare-switch # throws warning on enum1 == enum2 where both
336+ # enums represent same value but do not share the type. ie. we use both AsmJsType
337+ # and AsmJsRetType interchangably and filter things out by `default:` case.
338+ # -W-tautological-constant-compare throws warning for checks known at compile time.
339+ # Some of those checks are optimized out during compile / lto time, and others
340+ # are platform / compiler dependent.
341+ # -Wno-unknown-warning-option ... well, some of the new switches are not
342+ # recognized by older compilers and they fail. So, put this one and not fail
332343
333344 include (Build /CMakeFeatureDetect.cmake)
334345
You can’t perform that action at this time.
0 commit comments