-
Notifications
You must be signed in to change notification settings - Fork 461
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
FTBFS - Cast function type mismatch #851
Comments
Fails also with 5.10.1 and Clang 19.1.4:
|
Wrote a patch to ignore that error
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shows up with Clang 19.1.2 but not with Clang 16.0.6. This is when building Swift 5.8.1, but it looks like this code hasn't changed since then.
swift-corelibs-libdispatch/src/apply.c:366:4: error: cast from 'dispatch_function_t' (aka 'void ()(void * _Nullable)') to 'dispatch_apply_function_t' (aka 'void ()(void *, unsigned long)') converts to incompatible function type [-Werror,-Wcast-function-type-mismatch]
366 | (dispatch_apply_function_t)_dispatch_Block_invoke(work));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered: