Skip to content

Conversation

adierking
Copy link
Contributor

This function is declared as accepting a dispatch_function_t callback, which
is a function pointer with a void * argument. However, the implementation and
Swift overlay declare the callback without arguments, causing a conflict which
Clang warns about. Change the function signature to accept the correct type.

This function is declared as accepting a `dispatch_function_t` callback, which
is a function pointer with a `void *` argument. However, the implementation and
Swift overlay declare the callback without arguments, causing a conflict which
Clang warns about. Change the function signature to accept the correct type.
@compnerd
Copy link
Member

CC: @MadCoder

@compnerd
Copy link
Member

@swift-ci please test

@compnerd
Copy link
Member

This seems trivially correct. Any objections to merging this @MadCoder?

@MadCoder MadCoder merged commit 6d83ad5 into swiftlang:master Oct 17, 2018
@adierking adierking deleted the detach branch December 2, 2018 00:33
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
Fix the signature of _dispatch_install_thread_detach_callback()

Signed-off-by: Kim Topley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants