public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: binutils@sources.redhat.com
Subject: Fix compile time warning in bfd/coffcode.h
Date: Fri, 11 Feb 2005 19:00:00 -0000	[thread overview]
Message-ID: <m3u0oj580b.fsf@redhat.com> (raw)

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,

                 reply	other threads:[~2005-02-11 17:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3u0oj580b.fsf@redhat.com \
    --to=nickc@redhat.com \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).