From: Mike Frysinger Date: Fri, 22 Dec 2023 01:14:49 +0000 (-0500) Subject: sim: warnings: enable -Wshadow=local X-Git-Tag: binutils-2_42~219 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6c714d65b7296b466089f7d0d0270a12d51742f;p=thirdparty%2Fbinutils-gdb.git sim: warnings: enable -Wshadow=local This brings us in sync with current set of gdb warnings (for C). --- diff --git a/sim/configure b/sim/configure index 41c2056f08d..a839c3a4fb1 100755 --- a/sim/configure +++ b/sim/configure @@ -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 diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 9ad73b773b6..8a54e563bad 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -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