mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
configure: add -Wshadow option
Start exposing variable-shadowing warnings in all builds. Signed-off-by: Mark Stapp <mjs@cisco.com>
This commit is contained in:
parent
46a526568f
commit
05446a2961
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue