aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/elf32.em
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2013-10-09 18:16:18 +0000
committerRoland McGrath <roland@gnu.org>2013-10-09 18:16:18 +0000
commit677e5a92b1e998e33fbe216f4cbb52cc88b74bca (patch)
tree052544aecbf636da907376f0a631c7f97da597d8 /ld/emultempl/elf32.em
parent1c1479bf9986448f9f88f4668b47d502cbf455e6 (diff)
downloadgdb-677e5a92b1e998e33fbe216f4cbb52cc88b74bca.zip
gdb-677e5a92b1e998e33fbe216f4cbb52cc88b74bca.tar.gz
gdb-677e5a92b1e998e33fbe216f4cbb52cc88b74bca.tar.bz2
ld/
* emultempl/elf32.em (id_note_section_size): Use ATTRIBUTE_UNUSED rather than a dummy assignment for unused parameter. * plugin.c (get_input_file, release_input_file): Likewise.
Diffstat (limited to 'ld/emultempl/elf32.em')
-rw-r--r--ld/emultempl/elf32.em4
1 files changed, 1 insertions, 3 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 581d9db..682f5e5 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -893,13 +893,11 @@ if test x"$LDEMUL_AFTER_OPEN" != xgld"$EMULATION_NAME"_after_open; then
fragment <<EOF
static bfd_size_type
-id_note_section_size (bfd *abfd)
+id_note_section_size (bfd *abfd ATTRIBUTE_UNUSED)
{
const char *style = emit_note_gnu_build_id;
bfd_size_type size;
- abfd = abfd;
-
size = offsetof (Elf_External_Note, name[sizeof "GNU"]);
size = (size + 3) & -(bfd_size_type) 4;