From: Donald Sharp Date: Mon, 30 Jan 2023 15:12:06 +0000 (-0500) Subject: *: Add -Wswitch-enum to build X-Git-Tag: base_9.0~415^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=57ba9e9d7ca6c3d4514c958b1aec50784753abab;p=mirror%2Ffrr.git *: Add -Wswitch-enum to build The -Wswitch-enum will allow the compiler to warn us when a developer creates a switch over a enum and is using `default:` when they should be iterating over every enum Signed-off-by: Donald Sharp --- diff --git a/configure.ac b/configure.ac index 48ac4873b8..e20696a3d9 100644 --- a/configure.ac +++ b/configure.ac @@ -351,6 +351,7 @@ AC_C_FLAG([-Wall]) AC_C_FLAG([-Wextra]) AC_C_FLAG([-Wformat-nonliteral]) AC_C_FLAG([-Wformat-security]) +AC_C_FLAG([-Wswitch-enum]) AC_C_FLAG([-Wstrict-prototypes]) AC_C_FLAG([-Wmissing-prototypes]) AC_C_FLAG([-Wmissing-declarations])