Skip to content

Conversation

compnerd
Copy link
Member

No description provided.

The switch is fully covered over the enumeration and newer clang object
to the `default` cause in such a situation.  Remove the `default` case,
which should have no functional change.
-Wswitch-enum requires all cases be spelt out in a switch, even in the
presence of a `default` case.  This along with
`-Wswitch-covered-default` means that `default` cannot be used in a
switch over an enumerated type and every case must be spelt.  Use
`-Wswitch` instead which allows the use of `default` labels.
@compnerd
Copy link
Member Author

@swift-ci please test

1 similar comment
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @ktopley-apple

@compnerd
Copy link
Member Author

compnerd commented Apr 1, 2019

@ktopley-apple - ping

Copy link
Contributor

@ktopley-apple ktopley-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a later version of libdispatch that fixes this in a different way. Rather than wholesale copy that change here, we can fix it this way for now and move to the other fix when that version of libdispatch is pushed to GitHub.

@ktopley-apple ktopley-apple merged commit cc04868 into swiftlang:master Apr 3, 2019
@compnerd compnerd deleted the warnings branch February 15, 2020 19:39
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
Fix warnings (treated as errors)

Signed-off-by: Kim Topley <ktopley@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants