sim: warnings: enable -Wshadow=local

This brings us in sync with current set of gdb warnings (for C).
This commit is contained in:
Mike Frysinger 2023-12-21 20:14:49 -05:00
parent 199b67ca04
commit f6c714d65b
2 changed files with 2 additions and 1 deletions

1
sim/configure vendored
View File

@ -16156,6 +16156,7 @@ build_warnings="-Wall -Wpointer-arith
-Wno-error=deprecated-register
-Wimplicit-fallthrough=5
-Wduplicated-cond
-Wshadow=local
-Wmissing-declarations
"
build_warnings="$build_warnings

View File

@ -46,7 +46,7 @@ dnl C++ -Wno-mismatched-tags
dnl C++ -Wsuggest-override
-Wimplicit-fallthrough=5
-Wduplicated-cond
dnl -Wshadow=local
-Wshadow=local
dnl C++ -Wdeprecated-copy
dnl C++ -Wdeprecated-copy-dtor
dnl C++ -Wredundant-move