Message ID | 20231207035937.14920-14-vapier@gentoo.org |
---|---|
State | New |
Headers | |
Series | [01/17] sim: arm: fix -Wunused-but-set-variable warnings | |
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 | success | Testing passed |
linaro-tcwg-bot/tcwg_gdb_build--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_gdb_check--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 | fail | Patch failed to apply |
Commit Message
diff --git a/sim/msp430/msp430-sim.c b/sim/msp430/msp430-sim.c index a4ff6a4ad3f2..b34d23e8e84d 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. */