diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-07-22 23:23:11 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2018-07-22 23:23:11 -0400 |
commit | cf4088a92f240b01e6db8f39a5a3abfa918f6f2c (patch) | |
tree | ce5b4e2027626f31d0007da344a7c7344ea1f531 /gdb/remote-sim.c | |
parent | 6018c5acdf8b33b8f816de4757045379485f6ad6 (diff) | |
download | gdb-cf4088a92f240b01e6db8f39a5a3abfa918f6f2c.zip gdb-cf4088a92f240b01e6db8f39a5a3abfa918f6f2c.tar.gz gdb-cf4088a92f240b01e6db8f39a5a3abfa918f6f2c.tar.bz2 |
Remove some unused variables
Found using the newly-enabled -Wunused-variable.
gdb/ChangeLog:
* aarch64-linux-nat.c
(aarch64_linux_nat_target::stopped_data_address): Remove unused
variable.
* arm-linux-nat.c (fetch_regs): Likewise.
(store_regs): Likewise.
(fetch_vfp_regs): Likewise.
(store_vfp_regs): Likewise.
(arm_linux_nat_target::insert_hw_breakpoint): Likewise.
(arm_linux_nat_target::remove_hw_breakpoint): Likewise.
(arm_linux_nat_target::insert_watchpoint): Likewise.
(arm_linux_nat_target::remove_watchpoint): Likewise.
* mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
Likewise.
* nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
Likewise.
* ppc-linux-nat.c (fetch_register): Likewise.
(fetch_all_gp_regs): Likewise.
(fetch_ppc_registers): Likewise.
(store_all_gp_regs): Likewise.
(store_ppc_registers): Likewise.
(hwdebug_insert_point): Likewise.
(can_use_watchpoint_cond_accel): Likewise.
* remote-sim.c (gdb_os_write_stdout): Likewise.
gdb/gdbserver/ChangeLog:
* linux-mips-low.c (mips_collect_ptrace_register): Remove unused
variable.
(mips_supply_ptrace_register): Likewise.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 2900872..d30b38e 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -377,9 +377,6 @@ end_callbacks (void) static int gdb_os_write_stdout (host_callback *p, const char *buf, int len) { - int i; - char b[2]; - ui_file_write (gdb_stdtarg, buf, len); return len; } |