aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-11 20:09:04 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-11 20:09:04 +0000
commit87f2a3464bc56880619910126816120eeafdb1e2 (patch)
tree5889dc929e03609fc7e2ef7e6aaf04da15336f43 /ld/ldmain.c
parent8622e41b9ffd432fc916f0dd2fc8227f27eea3a9 (diff)
downloadgdb-87f2a3464bc56880619910126816120eeafdb1e2.zip
gdb-87f2a3464bc56880619910126816120eeafdb1e2.tar.gz
gdb-87f2a3464bc56880619910126816120eeafdb1e2.tar.bz2
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
as appropriate. Fill in structure initializations.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 7eef3e5..734bc32 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -705,7 +705,7 @@ add_keepsyms_file (filename)
/*ARGSUSED*/
static boolean
add_archive_element (info, abfd, name)
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
bfd *abfd;
const char *name;
{
@@ -820,7 +820,7 @@ add_archive_element (info, abfd, name)
/*ARGSUSED*/
static boolean
multiple_definition (info, name, obfd, osec, oval, nbfd, nsec, nval)
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
const char *name;
bfd *obfd;
asection *osec;
@@ -857,7 +857,7 @@ multiple_definition (info, name, obfd, osec, oval, nbfd, nsec, nval)
/*ARGSUSED*/
static boolean
multiple_common (info, name, obfd, otype, osize, nbfd, ntype, nsize)
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
const char *name;
bfd *obfd;
enum bfd_link_hash_type otype;
@@ -924,7 +924,7 @@ multiple_common (info, name, obfd, otype, osize, nbfd, ntype, nsize)
/*ARGSUSED*/
static boolean
add_to_set (info, h, reloc, abfd, section, value)
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
struct bfd_link_hash_entry *h;
bfd_reloc_code_real_type reloc;
bfd *abfd;
@@ -1023,7 +1023,7 @@ struct warning_callback_info
/*ARGSUSED*/
static boolean
warning_callback (info, warning, symbol, abfd, section, address)
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
const char *warning;
const char *symbol;
bfd *abfd;
@@ -1145,7 +1145,7 @@ warning_find_reloc (abfd, sec, iarg)
/*ARGSUSED*/
static boolean
undefined_symbol (info, name, abfd, section, address)
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
const char *name;
bfd *abfd;
asection *section;
@@ -1217,7 +1217,7 @@ undefined_symbol (info, name, abfd, section, address)
/*ARGSUSED*/
static boolean
reloc_overflow (info, name, reloc_name, addend, abfd, section, address)
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
const char *name;
const char *reloc_name;
bfd_vma addend;
@@ -1241,7 +1241,7 @@ reloc_overflow (info, name, reloc_name, addend, abfd, section, address)
/*ARGSUSED*/
static boolean
reloc_dangerous (info, message, abfd, section, address)
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
const char *message;
bfd *abfd;
asection *section;
@@ -1261,7 +1261,7 @@ reloc_dangerous (info, message, abfd, section, address)
/*ARGSUSED*/
static boolean
unattached_reloc (info, name, abfd, section, address)
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
const char *name;
bfd *abfd;
asection *section;