Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
build: switch -Wswitch-enum to -Wswitch
-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.
  • Loading branch information
compnerd committed Mar 26, 2019
commit 54c2f0c4558be7edfed61fe397db0ef585a487eb
2 changes: 1 addition & 1 deletion cmake/modules/DispatchCompilerWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ else()
add_compile_options(-Wsign-conversion)
add_compile_options(-Wstatic-in-inline)
add_compile_options(-Wsuper-class-method-mismatch)
add_compile_options(-Wswitch-enum)
add_compile_options(-Wswitch)
add_compile_options(-Wunguarded-availability)
add_compile_options(-Wunreachable-code)
add_compile_options(-Wunused)
Expand Down