aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 06:34:29 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-15 21:14:13 -0500
commit00383ba6b4a7b02adaa8bed6cdf919afac009658 (patch)
treef194f5ad7368d6b7d1535504dee552d4c9d04473 /sim
parent81a3befa0ac2ed1e7b2562c1a12d188623c5c3d1 (diff)
downloadgdb-00383ba6b4a7b02adaa8bed6cdf919afac009658.zip
gdb-00383ba6b4a7b02adaa8bed6cdf919afac009658.tar.gz
gdb-00383ba6b4a7b02adaa8bed6cdf919afac009658.tar.bz2
sim: warnings: enable -Wunused-but-set-variable
Diffstat (limited to 'sim')
-rwxr-xr-xsim/configure2
-rw-r--r--sim/m4/sim_ac_option_warnings.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/sim/configure b/sim/configure
index 7ed9834..be16fb4 100755
--- a/sim/configure
+++ b/sim/configure
@@ -15824,7 +15824,7 @@ fi
build_warnings="-Wall -Wpointer-arith
-Wno-unused -Wunused-value -Wunused-function
-Wno-switch -Wno-char-subscripts
--Wempty-body -Wunused-but-set-parameter
+-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
-Wno-sign-compare -Wno-error=maybe-uninitialized
-Wno-error=deprecated-register
-Wmissing-declarations
diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4
index 52beee8..6e6add6 100644
--- a/sim/m4/sim_ac_option_warnings.m4
+++ b/sim/m4/sim_ac_option_warnings.m4
@@ -39,7 +39,7 @@ dnl NB: Kept somewhat in sync with gdbsupport/warnings.m4.
build_warnings="-Wall -Wpointer-arith
-Wno-unused -Wunused-value -Wunused-function
-Wno-switch -Wno-char-subscripts
--Wempty-body -Wunused-but-set-parameter
+-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
-Wno-sign-compare -Wno-error=maybe-uninitialized
dnl C++ -Wno-mismatched-tags
-Wno-error=deprecated-register