public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Fix compile time warning in bfd/coffcode.h
@ 2005-02-11 19:00 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2005-02-11 19:00 UTC (permalink / raw)
  To: binutils

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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-11 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11 19:00 Fix compile time warning in bfd/coffcode.h Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).