From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13892 invoked by alias); 11 Feb 2005 17:09:45 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 13868 invoked from network); 11 Feb 2005 17:09:36 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 11 Feb 2005 17:09:36 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1BH9aOe008959 for ; Fri, 11 Feb 2005 12:09:36 -0500 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1BH9aO11532 for ; Fri, 11 Feb 2005 12:09:36 -0500 Received: from localhost.localdomain.redhat.com (vpnuser9.surrey.redhat.com [172.16.9.9]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id j1BH9ZMR004333 for ; Fri, 11 Feb 2005 17:09:35 GMT To: binutils@sources.redhat.com Subject: Fix compile time warning in bfd/coffcode.h From: Nick Clifton Date: Fri, 11 Feb 2005 19:00:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-02/txt/msg00252.txt.bz2 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 * 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,