warnings: disable -Wswitch-enum

This commit is contained in:
Danny Robson 2019-02-05 18:17:01 +11:00
parent 0e00c08c0e
commit 3368ac332e

View File

@ -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