aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-darwin-nat.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2018-09-30 17:12:00 +0100
committerPedro Alves <palves@redhat.com>2018-09-30 17:17:52 +0100
commitdd2037827180f69e7e312a2080affcbb03c98d70 (patch)
tree2a1c5e13edfc4b2cea9e7cb4b318866fb7cb99d9 /gdb/i386-darwin-nat.c
parent105cd1d7a6a7e6c5dce2e2eb32cdbfacc221a5d0 (diff)
downloadgdb-dd2037827180f69e7e312a2080affcbb03c98d70.zip
gdb-dd2037827180f69e7e312a2080affcbb03c98d70.tar.gz
gdb-dd2037827180f69e7e312a2080affcbb03c98d70.tar.bz2
Darwin: Remove unused variables [-Werror=unused-variable]
Building GDB with --host=x86_64-apple-darwin15 using G++ 5.3.0 runs into a number of -Werror=unused-variable warnings/errors: ../../src/gdb/i386-darwin-nat.c: In function 'void i386_darwin_dr_set(int, CORE_ADDR)': ../../src/gdb/i386-darwin-nat.c:283:7: error: unused variable 'current_pid' [-Werror=unused-variable] int current_pid; ^ [etc, etc.] This commit fixes all such warnings. gdb/ChangeLog: 2018-09-30 Pedro Alves <palves@redhat.com> * darwin-nat-info.c (darwin_debug_regions_recurse) (info_mach_exceptions_command): Remove unused local variables. * darwin-nat.c (darwin_decode_notify_message) (darwin_nat_target::resume, darwin_nat_target::mourn_inferior) (darwin_stop_inferior, darwin_setup_exceptions) (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him) (darwin_nat_target::attach, darwin_nat_target::detach) (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused local variables. * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local variables.
Diffstat (limited to 'gdb/i386-darwin-nat.c')
-rw-r--r--gdb/i386-darwin-nat.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c
index 2304f4a..820aff9 100644
--- a/gdb/i386-darwin-nat.c
+++ b/gdb/i386-darwin-nat.c
@@ -280,7 +280,6 @@ i386_darwin_nat_target::store_registers (struct regcache *regcache,
static void
i386_darwin_dr_set (int regnum, CORE_ADDR value)
{
- int current_pid;
thread_t current_thread;
x86_debug_state_t dr_regs;
kern_return_t ret;