aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 20:14:49 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-06 23:30:43 -0500
commitf6c714d65b7296b466089f7d0d0270a12d51742f (patch)
tree947a738f3a70a9844a6b28eb1e83a29992406d89
parent199b67ca043e21b94c965ffe2f3c56f25ee6e234 (diff)
downloadbinutils-f6c714d65b7296b466089f7d0d0270a12d51742f.zip
binutils-f6c714d65b7296b466089f7d0d0270a12d51742f.tar.gz
binutils-f6c714d65b7296b466089f7d0d0270a12d51742f.tar.bz2
sim: warnings: enable -Wshadow=local
This brings us in sync with current set of gdb warnings (for C).
-rwxr-xr-xsim/configure1
-rw-r--r--sim/m4/sim_ac_option_warnings.m42
2 files changed, 2 insertions, 1 deletions
diff --git a/sim/configure b/sim/configure
index 41c2056..a839c3a 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 9ad73b7..8a54e56 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