diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-06 20:08:07 -0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-07 22:31:21 -0700 |
commit | 0e12bb132e9a7de8cb234b21526b301e63705420 (patch) | |
tree | 79f921cf3fa14510770919c0671e9ffa95b36298 /sim/msp430 | |
parent | 5dda1cd28ae9daed39e2f6495df5cfd1e70c6a59 (diff) | |
download | gdb-0e12bb132e9a7de8cb234b21526b301e63705420.zip gdb-0e12bb132e9a7de8cb234b21526b301e63705420.tar.gz gdb-0e12bb132e9a7de8cb234b21526b301e63705420.tar.bz2 |
sim: msp430: fix -Wunused-but-set-variable warnings
Diffstat (limited to 'sim/msp430')
-rw-r--r-- | sim/msp430/msp430-sim.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/msp430/msp430-sim.c b/sim/msp430/msp430-sim.c index a4ff6a4..b34d23e 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. */ |