public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/committed 1/5] sim: m32r: cleanup unused variables
@ 2024-01-11  3:37 Mike Frysinger
  2024-01-11  3:37 ` [PATCH/committed 2/5] sim: m32r: migrate ftime() to clock_gettime() Mike Frysinger
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mike Frysinger @ 2024-01-11  3:37 UTC (permalink / raw)
  To: gdb-patches

We've been building this file with -Wno-error, so clean up unused
variable warnings.
---
 sim/m32r/traps.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sim/m32r/traps.c b/sim/m32r/traps.c
index 51fe0d484a5e..b779e0c3b9f5 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)
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-11  3:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-11  3:37 [PATCH/committed 1/5] sim: m32r: cleanup unused variables Mike Frysinger
2024-01-11  3:37 ` [PATCH/committed 2/5] sim: m32r: migrate ftime() to clock_gettime() Mike Frysinger
2024-01-11  3:37 ` [PATCH/committed 3/5] sim: m32r: fix missing break statement Mike Frysinger
2024-01-11  3:37 ` [PATCH/committed 4/5] sim: m32r: fixup some of the int<->pointer casts Mike Frysinger
2024-01-11  3:37 ` [PATCH/committed 5/5] sim: m32r: enable warnings in traps.c Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).