sim: warnings: enable -Wunused-but-set-variable
authorMike Frysinger <vapier@gentoo.org>
Wed, 6 Dec 2023 13:34:29 +0000 (06:34 -0700)
committerMike Frysinger <vapier@gentoo.org>
Sat, 16 Dec 2023 02:14:13 +0000 (21:14 -0500)
sim/configure
sim/m4/sim_ac_option_warnings.m4

index 7ed9834..be16fb4 100755 (executable)
@@ -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
index 52beee8..6e6add6 100644 (file)
@@ -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