aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-05-30 18:42:17 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-05-30 18:42:17 +0000
commit5a8b86270bbce5f9316ef7bdaa1a20b4832335ca (patch)
tree0b4afd5b7550e3efa0c237aa9ec9b15c2f090e01 /gdb/gnu-nat.c
parent366f550a593c7e6bae3699a4b6d65fe937af5603 (diff)
downloadgdb-5a8b86270bbce5f9316ef7bdaa1a20b4832335ca.zip
gdb-5a8b86270bbce5f9316ef7bdaa1a20b4832335ca.tar.gz
gdb-5a8b86270bbce5f9316ef7bdaa1a20b4832335ca.tar.bz2
hurd: remove unused variables
Fixes ../../gdb/gnu-nat.c:2554:7: error: unused variable ‘res’ [-Werror=unused-variable] 2554 | int res; ../../gdb/gnu-nat.c:2644:20: error: unused variable ‘old_address’ [-Werror=unused-variable] 2644 | vm_address_t old_address = region_address; gdb/ChangeLog: * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. (gnu_nat_target::find_memory_regions): Remove unused `old_address' variable.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r--gdb/gnu-nat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 9b93488..8bee815 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -2552,7 +2552,6 @@ gnu_xfer_auxv (gdb_byte *readbuf, const gdb_byte *writebuf,
? gnu_current_inf->task->port : 0)
: 0);
process_t proc;
- int res;
kern_return_t err;
vm_address_t entry;
ElfW(auxv_t) auxv[2];
@@ -2642,7 +2641,6 @@ gnu_nat_target::find_memory_regions (find_memory_region_ftype func,
mach_port_t object_name;
vm_offset_t offset;
vm_size_t region_length = VM_MAX_ADDRESS - region_address;
- vm_address_t old_address = region_address;
err = vm_region (task,
&region_address,