We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e38792 commit 25653acCopy full SHA for 25653ac
cmake/modules/SwiftSharedCMakeConfig.cmake
@@ -280,6 +280,9 @@ macro(swift_common_cxx_warnings)
280
if("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
281
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4068")
282
endif()
283
+
284
+ # Disallow calls to objc_msgSend() with no function pointer cast.
285
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DOBJC_OLD_DISPATCH_PROTOTYPES=0")
286
endmacro()
287
288
# Like 'llvm_config()', but uses libraries from the selected build
0 commit comments