summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-11-22 14:53:50 +0059
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-11-22 14:53:50 +0059
commitb7e1458773ba0dc765ea4b59b80d828e6fdc9871 (patch)
tree7b4a36e9da9caa3139b84355c9b88f8895007637
parent5f9d38fd85e779aa1fd17eb38d24f8ec994d9147 (diff)
downloadgdb-linaro-aosp.tar.gz
gdb-6.6: Make it build with current compilerslinaro-aosp
Make the AOSP version of gdb build with current compilers even with -Werror Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--gdb-6.6/bfd/archive64.c2
-rw-r--r--gdb-6.6/bfd/cpu-arm.c2
-rw-r--r--gdb-6.6/bfd/elf.c6
-rw-r--r--gdb-6.6/bfd/elf32-arm.c8
4 files changed, 9 insertions, 9 deletions
diff --git a/gdb-6.6/bfd/archive64.c b/gdb-6.6/bfd/archive64.c
index 4fc8b8519..269d22f80 100644
--- a/gdb-6.6/bfd/archive64.c
+++ b/gdb-6.6/bfd/archive64.c
@@ -54,7 +54,7 @@ bfd_elf64_archive_slurp_armap (bfd *abfd)
ardata->symdefs = NULL;
/* Get the name of the first element. */
- arhdrpos = bfd_tell (abfd);
+ arhdrpos = bfd_tell (abfd); (void)arhdrpos;
i = bfd_bread (nextname, 16, abfd);
if (i == 0)
return TRUE;
diff --git a/gdb-6.6/bfd/cpu-arm.c b/gdb-6.6/bfd/cpu-arm.c
index 52c359b8c..ceacf3e21 100644
--- a/gdb-6.6/bfd/cpu-arm.c
+++ b/gdb-6.6/bfd/cpu-arm.c
@@ -237,7 +237,7 @@ arm_check_note (bfd *abfd,
host whose endian-ness is different from the target. */
namesz = bfd_get_32 (abfd, buffer);
descsz = bfd_get_32 (abfd, buffer + offsetof (arm_Note, descsz));
- type = bfd_get_32 (abfd, buffer + offsetof (arm_Note, type));
+ type = bfd_get_32 (abfd, buffer + offsetof (arm_Note, type)); (void)type;
descr = (char *) buffer + offsetof (arm_Note, name);
/* Check for buffer overflow. */
diff --git a/gdb-6.6/bfd/elf.c b/gdb-6.6/bfd/elf.c
index 9550ab1b3..ae22e7ed3 100644
--- a/gdb-6.6/bfd/elf.c
+++ b/gdb-6.6/bfd/elf.c
@@ -4908,7 +4908,7 @@ prep_headers (bfd *abfd)
const struct elf_backend_data *bed = get_elf_backend_data (abfd);
i_ehdrp = elf_elfheader (abfd);
- i_shdrp = elf_elfsections (abfd);
+ i_shdrp = elf_elfsections (abfd); (void)i_shdrp;
shstrtab = _bfd_elf_strtab_init ();
if (shstrtab == NULL)
@@ -4972,7 +4972,7 @@ prep_headers (bfd *abfd)
else
{
i_ehdrp->e_phentsize = 0;
- i_phdrp = 0;
+ i_phdrp = 0; (void)i_phdrp;
i_ehdrp->e_phoff = 0;
}
@@ -5030,7 +5030,7 @@ _bfd_elf_write_object_contents (bfd *abfd)
return FALSE;
i_shdrp = elf_elfsections (abfd);
- i_ehdrp = elf_elfheader (abfd);
+ i_ehdrp = elf_elfheader (abfd); (void)i_ehdrp;
failed = FALSE;
bfd_map_over_sections (abfd, bed->s->write_relocs, &failed);
diff --git a/gdb-6.6/bfd/elf32-arm.c b/gdb-6.6/bfd/elf32-arm.c
index e1a25f658..e4518a099 100644
--- a/gdb-6.6/bfd/elf32-arm.c
+++ b/gdb-6.6/bfd/elf32-arm.c
@@ -3613,8 +3613,8 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
sgot = bfd_get_section_by_name (dynobj, ".got");
splt = bfd_get_section_by_name (dynobj, ".plt");
}
- symtab_hdr = & elf_tdata (input_bfd)->symtab_hdr;
- sym_hashes = elf_sym_hashes (input_bfd);
+ symtab_hdr = & elf_tdata (input_bfd)->symtab_hdr; (void)symtab_hdr;
+ sym_hashes = elf_sym_hashes (input_bfd); (void)sym_hashes;
local_got_offsets = elf_local_got_offsets (input_bfd);
r_symndx = ELF32_R_SYM (rel->r_info);
@@ -5750,7 +5750,7 @@ elf32_arm_relocate_section (bfd * output_bfd,
RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
r_symndx, symtab_hdr, sym_hashes,
h, sec, relocation,
- unresolved_reloc, warned);
+ unresolved_reloc, warned); (void)warned;
sym_type = h->type;
}
@@ -6979,7 +6979,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
}
dynobj = elf_hash_table (info)->dynobj;
- local_got_offsets = elf_local_got_offsets (abfd);
+ local_got_offsets = elf_local_got_offsets (abfd); (void)local_got_offsets;
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
sym_hashes = elf_sym_hashes (abfd);