diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 20:12:25 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-22 23:29:19 -0500 |
commit | c6f30b8791edefc467bad77cc8f452e68c89a71e (patch) | |
tree | 619fe76ce006a7c58cffa812044e30458812ed12 /sim/m68hc11/dv-m68hc11sio.c | |
parent | e4e3a80911a6c214ad4c9bae50593adc578d9c60 (diff) | |
download | binutils-c6f30b8791edefc467bad77cc8f452e68c89a71e.zip binutils-c6f30b8791edefc467bad77cc8f452e68c89a71e.tar.gz binutils-c6f30b8791edefc467bad77cc8f452e68c89a71e.tar.bz2 |
sim: m68hc11: fix -Wshadow=local warnings
Delete redundant decls when the existing scope has the same var and
type available for use.
Diffstat (limited to 'sim/m68hc11/dv-m68hc11sio.c')
-rw-r--r-- | sim/m68hc11/dv-m68hc11sio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m68hc11/dv-m68hc11sio.c b/sim/m68hc11/dv-m68hc11sio.c index 03b4461..f77dfde 100644 --- a/sim/m68hc11/dv-m68hc11sio.c +++ b/sim/m68hc11/dv-m68hc11sio.c @@ -227,7 +227,7 @@ m68hc11sio_port_event (struct hw *me, simulate some initial setup by the internal rom. */ if (((m68hc11_cpu->ios[M6811_HPRIO]) & (M6811_SMOD | M6811_MDA)) == M6811_SMOD) { - unsigned char val = 0x33; + val = 0x33; m68hc11sio_io_write_buffer (me, &val, io_map, (unsigned_word) M6811_BAUD, 1); |