From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7396 invoked by alias); 12 Apr 2005 01:21:33 -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 7368 invoked from network); 12 Apr 2005 01:21:25 -0000 Received: from unknown (HELO gizmo12ps.bigpond.com) (144.140.71.43) by sourceware.org with SMTP; 12 Apr 2005 01:21:25 -0000 Received: (qmail 12787 invoked from network); 12 Apr 2005 01:21:21 -0000 Received: from unknown (HELO psmam12.bigpond.com) (144.135.25.103) by gizmo12ps.bigpond.com with SMTP; 12 Apr 2005 01:21:21 -0000 Received: from cpe-144-136-221-26.sa.bigpond.net.au ([144.136.221.26]) by psmam12.bigpond.com(MAM REL_3_4_2a 234/10138796) with SMTP id 10138796; Tue, 12 Apr 2005 11:21:21 +1000 Received: by bubble.modra.org (Postfix, from userid 500) id 1F73F19F06E; Tue, 12 Apr 2005 10:51:21 +0930 Date: Tue, 12 Apr 2005 01:21:00 -0000 From: Alan Modra To: "Kaveh R. Ghazi" Cc: binutils@sources.redhat.com Subject: libiberty.h Message-ID: <20050412012121.GA3321@bubble.modra.org> Mail-Followup-To: "Kaveh R. Ghazi" , binutils@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2005-04/txt/msg00269.txt.bz2 This change 2005-04-11 Kaveh R. Ghazi * libiberty.h (fopen_unlocked, fdopen_unlocked, freopen_unlocked): Provide prototypes for new functions. causes gcc -DHAVE_CONFIG_H -I. -I/src/binutils-current/opcodes -I. -D_GNU_SOURCE -I. -I/src/binutils-current/opcodes -I../bfd -I/src/binutils-current/opcodes/../include -I/src/binutils-current/opcodes/../bfd -I/src/binutils-current/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O -c /src/binutils-current/opcodes/m88k-dis.c -o m88k-dis.o In file included from /src/binutils-current/opcodes/m88k-dis.c:27: /src/binutils-current/opcodes/../include/libiberty.h:55: error: parse error before numeric constant /src/binutils-current/opcodes/../include/libiberty.h:55: warning: function declaration isn't a prototype /src/binutils-current/opcodes/../include/libiberty.h:56: error: parse error before numeric constant /src/binutils-current/opcodes/../include/libiberty.h:56: warning: function declaration isn't a prototype /src/binutils-current/opcodes/../include/libiberty.h:57: error: parse error before numeric constant /src/binutils-current/opcodes/../include/libiberty.h:57: warning: function declaration isn't a prototype Preprocessing shows extern FILE *fopen_unlocked (const char *path, const char *31); extern FILE *fdopen_unlocked (int fildes, const char *31); extern FILE *freopen_unlocked (const char *path, const char *31, FILE *stream); Please remove the needless parameter names. -- Alan Modra IBM OzLabs - Linux Technology Centre