(coff_std_swap_table): Add an unused attribute in case it is not used.
authorNick Clifton <nickc@redhat.com>
Fri, 11 Feb 2005 17:10:07 +0000 (17:10 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 11 Feb 2005 17:10:07 +0000 (17:10 +0000)
bfd/ChangeLog
bfd/coffcode.h

index 78411ffb844d0ed1df1183ac8975c28fc1e9e8c1..78412ec0c96b81e2f15544383c55e0d03a4a5952 100644 (file)
@@ -29,6 +29,9 @@
        * coff-tic4x.c (coff_rtype_to_howto): Move definition before
        inclusion of coffcode.h so that it is actually picked up.
 
+       * coffcode.h (coff_std_swap_table): Add an unused attribute in
+       case it is not used.
+
 2005-02-12  Alan Modra  <amodra@bigpond.net.au>
 
        * elf64-ppc.c (toc_adjusting_stub_needed): Return true for
index b9dc23c0a68740e307950aaffccb5b574d9a0fbb..589b855614592d7538090cc831cb23a7d0ca3718 100644 (file)
@@ -5296,7 +5296,7 @@ coff_final_link_postscript (abfd, pfinfo)
 #define coff_SWAP_scnhdr_in coff_swap_scnhdr_in
 #endif
 
-static const bfd_coff_backend_data bfd_coff_std_swap_table =
+static const bfd_coff_backend_data bfd_coff_std_swap_table ATTRIBUTE_UNUSED =
 {
   coff_SWAP_aux_in, coff_SWAP_sym_in, coff_SWAP_lineno_in,
   coff_SWAP_aux_out, coff_SWAP_sym_out,