public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: msp430: 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=0e12bb132e9a7de8cb234b21526b301e63705420
commit 0e12bb132e9a7de8cb234b21526b301e63705420
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Dec 6 20:08:07 2023 -0700
sim: msp430: fix -Wunused-but-set-variable warnings
Diff:
---
sim/msp430/msp430-sim.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sim/msp430/msp430-sim.c b/sim/msp430/msp430-sim.c
index a4ff6a4ad3f..b34d23e8e84 100644
--- a/sim/msp430/msp430-sim.c
+++ b/sim/msp430/msp430-sim.c
@@ -202,11 +202,10 @@ sim_create_inferior (SIM_DESC sd,
char * const *env)
{
unsigned char resetv[2];
- int c;
int new_pc;
/* Set the PC to the default reset vector if available. */
- c = sim_core_read_buffer (sd, STATE_CPU (sd, 0), read_map, resetv, 0xfffe, 2);
+ sim_core_read_buffer (sd, STATE_CPU (sd, 0), read_map, resetv, 0xfffe, 2);
new_pc = resetv[0] + 256 * resetv[1];
/* If the reset vector isn't initialized, then use the ELF entry. */
^ 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: msp430: 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).