summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-01-30 16:12:06 +0100
committerDonald Sharp <sharpd@nvidia.com>2023-01-31 21:15:59 +0100
commit57ba9e9d7ca6c3d4514c958b1aec50784753abab (patch)
tree69fbf4e643f5d2d9e698ccf1a02b28ce5f66b2a1 /configure.ac
parenttools: Add missing enums to switch statement (diff)
downloadfrr-57ba9e9d7ca6c3d4514c958b1aec50784753abab.tar.xz
frr-57ba9e9d7ca6c3d4514c958b1aec50784753abab.zip
*: 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 <sharpd@nvidia.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 48ac4873b..e20696a3d 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])