diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 20:14:49 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-06 23:30:43 -0500 |
commit | f6c714d65b7296b466089f7d0d0270a12d51742f (patch) | |
tree | 947a738f3a70a9844a6b28eb1e83a29992406d89 /sim | |
parent | 199b67ca043e21b94c965ffe2f3c56f25ee6e234 (diff) | |
download | gdb-f6c714d65b7296b466089f7d0d0270a12d51742f.zip gdb-f6c714d65b7296b466089f7d0d0270a12d51742f.tar.gz gdb-f6c714d65b7296b466089f7d0d0270a12d51742f.tar.bz2 |
sim: warnings: enable -Wshadow=local
This brings us in sync with current set of gdb warnings (for C).
Diffstat (limited to 'sim')
-rwxr-xr-x | sim/configure | 1 | ||||
-rw-r--r-- | sim/m4/sim_ac_option_warnings.m4 | 2 |
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 |