Skip to content

Commit 30bb801

Browse files
authored
Merge pull request swiftlang#840 from bnbarham/disable-new-warning
Disable new `cast-function-type-mismatch`
2 parents 7ee5ee9 + 1990f4e commit 30bb801

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/DispatchCompilerWarnings.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,8 @@ else()
7777
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-shorten-64-to-32>)
7878
endif()
7979
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-error=assign-enum>)
80+
81+
# Should re-enable after rdar://133498289 is fixed (ie. fixing the one mismatched cast in apply.c)
82+
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-cast-function-type-mismatch>)
83+
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-error=unknown-warning-option>)
8084
endif()

0 commit comments

Comments
 (0)