From 58d38850b68914f4990714c8b8083050f4436726 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 6 Dec 2023 06:39:25 -0700 Subject: sim: warnings: enable -Wunused-variable --- sim/configure | 2 +- sim/m4/sim_ac_option_warnings.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/configure b/sim/configure index 62ef890..9fae4e9 100755 --- a/sim/configure +++ b/sim/configure @@ -15824,7 +15824,7 @@ if test "${ERROR_ON_WARNING}" = yes ; then fi build_warnings="-Wall -Wpointer-arith --Wno-unused -Wunused-value -Wunused-function +-Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 02b5ffa..9ad73b7 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -37,7 +37,7 @@ fi dnl The options we'll try to enable. dnl NB: Kept somewhat in sync with gdbsupport/warnings.m4. build_warnings="-Wall -Wpointer-arith --Wno-unused -Wunused-value -Wunused-function +-Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -- cgit v1.1