From 05446a2961b251ea66e442892fade4118c634a54 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Thu, 23 Jan 2025 15:43:55 -0500 Subject: [PATCH] configure: add -Wshadow option Start exposing variable-shadowing warnings in all builds. Signed-off-by: Mark Stapp --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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