Skip to content

Invalid unreachable code warning #527

@bvdberg

Description

@bvdberg
    loop: while (1) {
        char c = read_char();
        switch (c) {
        case 'q':
            break loop;
        default:
            break;
        }
    }
    // Error: unreachable code

Apparently the labelled break is not used correctly in the analyser.

Metadata

Metadata

Assignees

No one assigned

    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