mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
*: 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>
This commit is contained in:
parent
0678d01a70
commit
57ba9e9d7c
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue