Skip to content

FTBFS - Cast function type mismatch #851

Closed
@melizasw

Description

@melizasw

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));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions