Skip to content

Commit 1990f4e

Browse files
committed
Disable new cast-function-type-mismatch
Should fix this properly, but for now just disable the warning itself.
1 parent 542b7f3 commit 1990f4e

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)