Skip to content

Commit 8715642

Browse files
committed
[build] Silence -Wvoid-pointer-to-int-cast
libdispatch will fail to build with a newly introduced clang diagnostic `pointer-to-int-cast`. libdispatch converts a void pointer to a dispatch_invoke_flags_t (aka unsigned int) in a few places. Ideally we would not be doing this, but this solution at least gets libdispatch building again with a newer version of clang.
1 parent c992dac commit 8715642

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/modules/DispatchCompilerWarnings.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ else()
6262
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-unreachable-code-aggressive>)
6363
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-unused-macros>)
6464
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-used-but-marked-unused>)
65+
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-void-pointer-to-int-cast>)
6566
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wno-vla>)
6667

6768
if(CMAKE_SYSTEM_NAME STREQUAL Android)

0 commit comments

Comments
 (0)