From 8715642203d80de095df5dfcbab1ff7d83a78f5e Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Tue, 18 Feb 2020 13:04:21 -0800 Subject: [PATCH] [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. --- cmake/modules/DispatchCompilerWarnings.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/DispatchCompilerWarnings.cmake b/cmake/modules/DispatchCompilerWarnings.cmake index 6ef9d3164..35b80f3ec 100644 --- a/cmake/modules/DispatchCompilerWarnings.cmake +++ b/cmake/modules/DispatchCompilerWarnings.cmake @@ -62,6 +62,7 @@ else() add_compile_options($<$,$>:-Wno-unreachable-code-aggressive>) add_compile_options($<$,$>:-Wno-unused-macros>) add_compile_options($<$,$>:-Wno-used-but-marked-unused>) + add_compile_options($<$,$>:-Wno-void-pointer-to-int-cast>) add_compile_options($<$,$>:-Wno-vla>) if(CMAKE_SYSTEM_NAME STREQUAL Android)