From 3368ac332edc523e58a9a1fb1a0b838ae859f5df Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 5 Feb 2019 18:17:01 +1100 Subject: [PATCH] warnings: disable -Wswitch-enum --- nc_warnings.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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