Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Non-void fonction not detected by Xcode compiler; Missing return warning #121

@BelaSzombathelyi

Description

@BelaSzombathelyi

The LLVM not drop warning for this:

- (int)test
{
    if (YES) {

    } else {
        @weakify(self);
        ^{
            @strongify(self);
            NSLog(@"%@",self.class);
        }();
    }
}

If I remove weakly and strongly it drop compile error.

- (int)test
{
    if (YES) {

    } else {
        ^{
            NSLog(@"%@",self.class);
        }();
    }
} // Control reaches end of non-void function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions