public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: arm: fix -Wunused-but-set-variable warnings
@ 2023-12-08  5:31 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-08  5:31 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ad4106f8dd948bf04cb1c427124c711d3eb72766

commit ad4106f8dd948bf04cb1c427124c711d3eb72766
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Dec 6 06:34:44 2023 -0700

    sim: arm: fix -Wunused-but-set-variable warnings

Diff:
---
 sim/arm/armos.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sim/arm/armos.c b/sim/arm/armos.c
index 9cf238ac8e2..42d1dfb4ed1 100644
--- a/sim/arm/armos.c
+++ b/sim/arm/armos.c
@@ -99,7 +99,6 @@ ARMul_OSInit (ARMul_State * state)
 #ifndef NOOS
 #ifndef VALIDATE
   ARMword instr, i, j;
-  struct OSblock *OSptr = (struct OSblock *) state->OSptr;
 
   if (state->OSptr == NULL)
     {
@@ -111,7 +110,6 @@ ARMul_OSInit (ARMul_State * state)
 	}
     }
 
-  OSptr = (struct OSblock *) state->OSptr;
   state->Reg[13] = ADDRSUPERSTACK;			/* Set up a stack for the current mode...  */
   ARMul_SetReg (state, SVC32MODE,   13, ADDRSUPERSTACK);/* ...and for supervisor mode...  */
   ARMul_SetReg (state, ABORT32MODE, 13, ADDRSUPERSTACK);/* ...and for abort 32 mode...  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-08  5:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08  5:31 [binutils-gdb] sim: arm: fix -Wunused-but-set-variable warnings Michael 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).