aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 20:10:20 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-22 23:29:19 -0500
commita42661395e9a4be81f5c22022dbb7e48cef30758 (patch)
treeddd0034374b4042416a7a57fe3ef291a08733e4d /sim/h8300
parent9b5e6c1e489d5cc1e14aeb18c134b0b2892d3d92 (diff)
downloadbinutils-a42661395e9a4be81f5c22022dbb7e48cef30758.zip
binutils-a42661395e9a4be81f5c22022dbb7e48cef30758.tar.gz
binutils-a42661395e9a4be81f5c22022dbb7e48cef30758.tar.bz2
sim: h8300: fix -Wshadow=local warnings
Delete conflicting decls when the existing scope has vars of the same name & type for this exact use.
Diffstat (limited to 'sim/h8300')
-rw-r--r--sim/h8300/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c
index 8ae7757..cfa6eee 100644
--- a/sim/h8300/compile.c
+++ b/sim/h8300/compile.c
@@ -1738,7 +1738,7 @@ init_pointers (SIM_DESC sd)
#define OBITOP(name, f, s, op) \
case O (name, SB): \
{ \
- int m, tmp; \
+ int m; \
\
if (f) \
if (fetch (sd, &code->dst, &ea)) \
@@ -4770,7 +4770,7 @@ sim_open (SIM_OPEN_KIND kind,
/* CPU specific initialization. */
for (i = 0; i < MAX_NR_PROCESSORS; ++i)
{
- SIM_CPU *cpu = STATE_CPU (sd, i);
+ cpu = STATE_CPU (sd, i);
CPU_REG_FETCH (cpu) = h8300_reg_fetch;
CPU_REG_STORE (cpu) = h8300_reg_store;