Skip to content

Conflicting warnings when handling enums in a switch with -Weverything #81354

Closed as not planned
@StreetwareGames

Description

@StreetwareGames

foo() warns about a default case missing, while foo2() warns about a default case being present when every enum case is already handled.

https://godbolt.org/z/WxooaoeMK

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerinvalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions