-
Notifications
You must be signed in to change notification settings - Fork 1.2k
CoreFoundation: explicitly cast to the proper fptr types #4689
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
Conversation
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conversions themselves look fine. I think we can get without needing to cast _CFXMLNotationScanner
. It's only used in this one place, so changing it to accept a const xmlChar*
should be pretty straight-forward.
The other cast with in the RunLoop looks fine. Perhaps we should typedef the destructor type and put it on both sides of the #if _POSIX_THREADS
?
@swift-ci please test |
Adjust the signature for the internal callback to be const-correct which avoids an error (warning) with the newer compiler. Additionally cast the function pointer in the RunLoop to match the expected signature.
@swift-ci please test |
@shahmishal Any idea what this error is about?
|
That suggests there's an out-of-date swift-syntax checkout. |
@swift-ci please test macOS platform |
3 similar comments
@swift-ci please test macOS platform |
@swift-ci please test macOS platform |
@swift-ci please test macOS platform |
@swift-ci please clean test macOS platform |
@swift-ci please test macOS platform |
This should be fixed now, updated the job with required flag. |
Merging this to aid in making forward progress on the rebranch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright LGTM
With the latest rebranch, the mismatched function pointer types raise an error rather than a warning. Explicitly cast to the expected function pointer type rather than ignoring the warning.