Skip to content

Fix the signature of _dispatch_install_thread_detach_callback() #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Fix the signature of _dispatch_install_thread_detach_callback() #403

merged 1 commit into from
Oct 17, 2018

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