Skip to content

XCode 9 warning: This block declaration is not a prototype #132

@csknns

Description

@csknns

XCode 9 has turned on by default the -Wstrict-prototypes, which causes the warning "This block declaration is not a prototype" when you have a block declaration with empty parenthesis:
void (^)(). The recommended fix is to explicitly declare the argument void void (^)(void). Also check the answer here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions