diff --git a/nc_warnings.cmake b/nc_warnings.cmake index 0e75ce4..01aa5d4 100644 --- a/nc_warnings.cmake +++ b/nc_warnings.cmake @@ -45,7 +45,8 @@ append_compile_flag(-Wtype-limits) append_compile_flag(-Wunused-but-set-variable) append_compile_flag(-Wunused-parameter) append_compile_flag(-Wpessimizing-move) -append_compile_flag(-Wswitch-enum) +# Don't use -Wswitch-enum, it's the same as -Wswitch but also warns if you use +# a default. Just don't use a default if that's something you want to catch. append_compile_flag(-Wswitch) # dont use unsafe-loop-optimisations as there are too many false positives