diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-01-30 10:12:06 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-01-31 15:15:59 -0500 |
| commit | 57ba9e9d7ca6c3d4514c958b1aec50784753abab (patch) | |
| tree | 69fbf4e643f5d2d9e698ccf1a02b28ce5f66b2a1 /configure.ac | |
| parent | 0678d01a704fc0715aa880cfea8dc154ce5ea071 (diff) | |
*: 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.ac | 1 |
1 files changed, 1 insertions, 0 deletions
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]) |
