From 57ba9e9d7ca6c3d4514c958b1aec50784753abab Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 30 Jan 2023 10:12:06 -0500 Subject: [PATCH] *: 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 --- configure.ac | 1 + 1 file changed, 1 insertion(+) 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]) -- 2.39.5