summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Stapp <mjs@cisco.com>2025-01-23 15:43:55 -0500
committerMark Stapp <mjs@cisco.com>2025-04-08 14:41:26 -0400
commit05446a2961b251ea66e442892fade4118c634a54 (patch)
treea0055de14d5a76ea3dd34fda925281676e72c67a
parent46a526568fc262334c4959bdff40f96e992b51d7 (diff)
configure: add -Wshadow option
Start exposing variable-shadowing warnings in all builds. Signed-off-by: Mark Stapp <mjs@cisco.com>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f9f3286563..00a5620529 100644
--- a/configure.ac
+++ b/configure.ac
@@ -467,6 +467,7 @@ AC_C_FLAG([-Wbad-function-cast])
AC_C_FLAG([-Wwrite-strings])
AC_C_FLAG([-Wundef])
AC_C_FLAG([-Wimplicit-fallthrough])
+AC_C_FLAG([-Wshadow])
if test "$enable_gcc_ultra_verbose" = "yes" ; then
AC_C_FLAG([-Wcast-qual])
AC_C_FLAG([-Wmissing-noreturn])
@@ -474,7 +475,6 @@ if test "$enable_gcc_ultra_verbose" = "yes" ; then
AC_C_FLAG([-Wunreachable-code])
AC_C_FLAG([-Wpacked])
AC_C_FLAG([-Wpadded])
- AC_C_FLAG([-Wshadow])
else
AC_C_FLAG([-Wno-unused-result])
fi