diff options
| author | Roland McGrath <roland@gnu.org> | 2013-10-09 18:18:49 +0000 |
|---|---|---|
| committer | Roland McGrath <roland@gnu.org> | 2013-10-09 18:18:49 +0000 |
| commit | e8a8f015ccbea69db9444ddea4a6ba7dd9693466 (patch) | |
| tree | 8148a5b784f766af9c1b7c4ddbd9c75824dbe542 /ld | |
| parent | ee895fb2195aae5728ca96fa185799b18fcd607d (diff) | |
| download | ppe42-binutils-e8a8f015ccbea69db9444ddea4a6ba7dd9693466.tar.gz ppe42-binutils-e8a8f015ccbea69db9444ddea4a6ba7dd9693466.zip | |
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')
| -rw-r--r-- | ld/ChangeLog | 6 | ||||
| -rw-r--r-- | ld/emultempl/elf32.em | 4 | ||||
| -rw-r--r-- | ld/plugin.c | 10 |
3 files changed, 11 insertions, 9 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index cca109cbbc..865184f5c9 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2013-10-09 Roland McGrath <mcgrathr@google.com> + + * 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. + 2013-10-04 Will Newton <will.newton@linaro.org> * emulparams/aarch64elf.sh: Add IREL_IN_PLT. 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; diff --git a/ld/plugin.c b/ld/plugin.c index 23a4a78ee9..0d5339fd9d 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -1,5 +1,5 @@ /* Plugin control for the GNU linker. - Copyright 2010, 2011, 2012 Free Software Foundation, Inc. + Copyright 2010, 2011, 2012, 2013 Free Software Foundation, Inc. This file is part of the GNU Binutils. @@ -429,20 +429,18 @@ add_symbols (void *handle, int nsyms, const struct ld_plugin_symbol *syms) /* Get the input file information with an open (possibly re-opened) file descriptor. */ static enum ld_plugin_status -get_input_file (const void *handle, struct ld_plugin_input_file *file) +get_input_file (const void *handle ATTRIBUTE_UNUSED, + struct ld_plugin_input_file *file ATTRIBUTE_UNUSED) { ASSERT (called_plugin); - handle = handle; - file = file; return LDPS_ERR; } /* Release the input file. */ static enum ld_plugin_status -release_input_file (const void *handle) +release_input_file (const void *handle ATTRIBUTE_UNUSED) { ASSERT (called_plugin); - handle = handle; return LDPS_ERR; } |

