summaryrefslogtreecommitdiff
path: root/ld/plugin.c
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/plugin.c
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/plugin.c')
-rw-r--r--ld/plugin.c10
1 files changed, 4 insertions, 6 deletions
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;
}