summaryrefslogtreecommitdiff
path: root/ld/emultempl
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
commitc9967345ff7bad4e877b977609a980e428a6fb5c (patch)
tree67846c5b9d101f36df1ef6a7f3fb18c13596d02a /ld/emultempl
parent7f6ed510ec89ab5f96bf6de6967d281c109eb086 (diff)
downloadbinutils-redhat-c9967345ff7bad4e877b977609a980e428a6fb5c.tar.gz
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')
-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 581d9db897..682f5e5393 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;