diff options
author | Pedro Alves <palves@redhat.com> | 2018-09-30 17:12:00 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-09-30 17:17:52 +0100 |
commit | dd2037827180f69e7e312a2080affcbb03c98d70 (patch) | |
tree | 2a1c5e13edfc4b2cea9e7cb4b318866fb7cb99d9 /gdb/sh-tdep.h | |
parent | 105cd1d7a6a7e6c5dce2e2eb32cdbfacc221a5d0 (diff) | |
download | binutils-dd2037827180f69e7e312a2080affcbb03c98d70.zip binutils-dd2037827180f69e7e312a2080affcbb03c98d70.tar.gz binutils-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/sh-tdep.h')
0 files changed, 0 insertions, 0 deletions