sim: warnings: enable -Wunused-but-set-variable

This commit is contained in:
Mike Frysinger 2023-12-06 06:34:29 -07:00
parent 81a3befa0a
commit 00383ba6b4
2 changed files with 2 additions and 2 deletions

2
sim/configure vendored
View File

@ -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

View 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