This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix compile time warning in bfd/coffcode.h


Hi Guys,

  I am applying the patch below to fix a compile time warning building
  bfd/coff64-rs6000.c, although the actual problem was in coffcode.h.
  The coff64-rs6000.c defines its own swap table, so the default
  coff_std_swap_table structure defined in coffcode.h is not used.

Cheers
  Nick

bfd/ChangeLog
2005-02-11  Nick Clifton  <nickc@redhat.com>

	* coffcode.h (coff_std_swap_table): Add an unused attribute in
	case it is not used.

Index: bfd/coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.116
diff -c -3 -p -r1.116 coffcode.h
*** bfd/coffcode.h	31 Jan 2005 23:13:16 -0000	1.116
--- bfd/coffcode.h	11 Feb 2005 17:07:53 -0000
*************** coff_final_link_postscript (abfd, pfinfo
*** 5296,5302 ****
  #define coff_SWAP_scnhdr_in coff_swap_scnhdr_in
  #endif
  
! static const bfd_coff_backend_data bfd_coff_std_swap_table =
  {
    coff_SWAP_aux_in, coff_SWAP_sym_in, coff_SWAP_lineno_in,
    coff_SWAP_aux_out, coff_SWAP_sym_out,
--- 5296,5302 ----
  #define coff_SWAP_scnhdr_in coff_swap_scnhdr_in
  #endif
  
! 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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]