diff options
author | Mike Frysinger <vapier@gentoo.org> | 2024-01-10 21:56:58 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-10 22:31:53 -0500 |
commit | c66061f40399dbb42a98707fc4fd1227b6a23751 (patch) | |
tree | 8222781660e2a2b886c9c88edcd9cb4e688fbe4c /sim | |
parent | f0f0b063f0a6af814f3b3cc3872a69830d58980c (diff) | |
download | gdb-c66061f40399dbb42a98707fc4fd1227b6a23751.zip gdb-c66061f40399dbb42a98707fc4fd1227b6a23751.tar.gz gdb-c66061f40399dbb42a98707fc4fd1227b6a23751.tar.bz2 |
sim: m32r: cleanup unused variables
We've been building this file with -Wno-error, so clean up unused
variable warnings.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/m32r/traps.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sim/m32r/traps.c b/sim/m32r/traps.c index 51fe0d4..b779e0c 100644 --- a/sim/m32r/traps.c +++ b/sim/m32r/traps.c @@ -141,7 +141,6 @@ static void * t2h_addr (host_callback *cb, struct cb_syscall *sc, unsigned long taddr) { - void *addr; SIM_DESC sd = (SIM_DESC) sc->p1; SIM_CPU *cpu = (SIM_CPU *) sc->p2; @@ -220,7 +219,7 @@ m32r_trap (SIM_CPU *current_cpu, PCADDR pc, int num) { CB_SYSCALL s; unsigned int func, arg1, arg2, arg3, arg4, arg5, arg6, arg7; - int result, result2, errcode; + int result, errcode; if (STATE_ENVIRONMENT (sd) != USER_ENVIRONMENT) goto case_default; @@ -250,7 +249,6 @@ m32r_trap (SIM_CPU *current_cpu, PCADDR pc, int num) s.write_mem = sim_syscall_write_mem; result = 0; - result2 = 0; errcode = 0; switch (func) |