From 8718ac9cb858e3e21fd5f4af3c18e67bcdb4e8d2 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Fri, 25 Oct 2002 15:43:03 +0000 Subject: [PATCH] * simple.c: Correct placement of ATTRIBUTE_UNUSED. --- bfd/ChangeLog | 4 +++ bfd/simple.c | 84 ++++++++++++++++++++++++++--------------------------------- 2 files changed, 41 insertions(+), 47 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 07288b8..27230ff 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2002-10-25 Hans-Peter Nilsson + + * simple.c: Correct placement of ATTRIBUTE_UNUSED. + 2002-10-24 John David Anglin * aoutx.h (NAME(aout,swap_ext_reloc_in)): Cast bytes->r_index to diff --git a/bfd/simple.c b/bfd/simple.c index 0c61cb4..10178a4 100644 --- a/bfd/simple.c +++ b/bfd/simple.c @@ -25,56 +25,46 @@ #include "bfdlink.h" static boolean simple_dummy_warning - PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, - const char * ATTRIBUTE_UNUSED, const char * ATTRIBUTE_UNUSED, - bfd * ATTRIBUTE_UNUSED, asection * ATTRIBUTE_UNUSED, - bfd_vma ATTRIBUTE_UNUSED)); + PARAMS ((struct bfd_link_info *, const char *, const char *, bfd *, + asection *, bfd_vma)); static boolean simple_dummy_undefined_symbol - PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, - const char * ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED, - asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED, - boolean ATTRIBUTE_UNUSED)); + PARAMS ((struct bfd_link_info *, const char *, bfd *, asection *, + bfd_vma, boolean)); static boolean simple_dummy_reloc_overflow - PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, - const char * ATTRIBUTE_UNUSED, const char * ATTRIBUTE_UNUSED, - bfd_vma ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED, - asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED)); + PARAMS ((struct bfd_link_info *, const char *, const char *, bfd_vma, + bfd *, asection *, bfd_vma)); static boolean simple_dummy_reloc_dangerous - PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, - const char * ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED, - asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED)); + PARAMS ((struct bfd_link_info *, const char *, bfd *, asection *, bfd_vma)); static boolean simple_dummy_unattached_reloc - PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, - const char * ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED, - asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED)); + PARAMS ((struct bfd_link_info *, const char *, bfd *, asection *, bfd_vma)); bfd_byte * bfd_simple_get_relocated_section_contents PARAMS ((bfd *, asection *, bfd_byte *)); static boolean simple_dummy_warning (link_info, warning, symbol, abfd, section, address) - struct bfd_link_info *link_info; - const char *warning; - const char *symbol; - bfd *abfd; - asection *section; - bfd_vma address; + struct bfd_link_info *link_info ATTRIBUTE_UNUSED; + const char *warning ATTRIBUTE_UNUSED; + const char *symbol ATTRIBUTE_UNUSED; + bfd *abfd ATTRIBUTE_UNUSED; + asection *section ATTRIBUTE_UNUSED; + bfd_vma address ATTRIBUTE_UNUSED; { return true; } static boolean simple_dummy_undefined_symbol (link_info, name, abfd, section, address, fatal) - struct bfd_link_info *link_info; - const char *name; - bfd *abfd; - asection *section; - bfd_vma address; - boolean fatal; + struct bfd_link_info *link_info ATTRIBUTE_UNUSED; + const char *name ATTRIBUTE_UNUSED; + bfd *abfd ATTRIBUTE_UNUSED; + asection *section ATTRIBUTE_UNUSED; + bfd_vma address ATTRIBUTE_UNUSED; + boolean fatal ATTRIBUTE_UNUSED; { return true; } @@ -82,35 +72,35 @@ simple_dummy_undefined_symbol (link_info, name, abfd, section, address, fatal) static boolean simple_dummy_reloc_overflow (link_info, name, reloc_name, addend, abfd, section, address) - struct bfd_link_info *link_info; - const char *name; - const char *reloc_name; - bfd_vma addend; - bfd *abfd; - asection *section; - bfd_vma address; + struct bfd_link_info *link_info ATTRIBUTE_UNUSED; + const char *name ATTRIBUTE_UNUSED; + const char *reloc_name ATTRIBUTE_UNUSED; + bfd_vma addend ATTRIBUTE_UNUSED; + bfd *abfd ATTRIBUTE_UNUSED; + asection *section ATTRIBUTE_UNUSED; + bfd_vma address ATTRIBUTE_UNUSED; { return true; } static boolean simple_dummy_reloc_dangerous (link_info, message, abfd, section, address) - struct bfd_link_info *link_info; - const char *message; - bfd *abfd; - asection *section; - bfd_vma address; + struct bfd_link_info *link_info ATTRIBUTE_UNUSED; + const char *message ATTRIBUTE_UNUSED; + bfd *abfd ATTRIBUTE_UNUSED; + asection *section ATTRIBUTE_UNUSED; + bfd_vma address ATTRIBUTE_UNUSED; { return true; } static boolean simple_dummy_unattached_reloc (link_info, name, abfd, section, address) - struct bfd_link_info *link_info; - const char *name; - bfd *abfd; - asection *section; - bfd_vma address; + struct bfd_link_info *link_info ATTRIBUTE_UNUSED; + const char *name ATTRIBUTE_UNUSED; + bfd *abfd ATTRIBUTE_UNUSED; + asection *section ATTRIBUTE_UNUSED; + bfd_vma address ATTRIBUTE_UNUSED; { return true; } -- 2.7.4