This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Fix GCC 4.0 warnings in testsuite
- From: Nick Clifton <nickc at redhat dot com>
- To: Martin Koegler <mkoegler at auto dot tuwien dot ac dot at>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 04 Jan 2005 10:21:32 +0000
- Subject: Re: [PATCH] Fix GCC 4.0 warnings in testsuite
- References: <20041226130515.GA17038@ahab.auto.tuwien.ac.at>
Hi Martin,
Can it be applied to the CVS?
Index: binutils/testsuite/binutils-all/testprog.c
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/testprog.c,v
retrieving revision 1.4
diff -u -r1.4 testprog.c
--- binutils/testsuite/binutils-all/testprog.c 23 Apr 2003 17:36:08 -0000 1.4
+++ binutils/testsuite/binutils-all/testprog.c 25 Dec 2004 20:57:27 -0000
@@ -1,11 +1,12 @@
/* This program is used to test objcopy, readelf and strip. */
extern int strcmp (char *, const char *);
+extern int printf (const char* format,...);
int common;
int global = 1;
static int local = 2;
-static unsigned char string[] = "string";
+static char string[] = "string";
int
fn ()
Thanks for submitting this patch. I have applied it to the CVS sources
along with this ChangeLog entry:
binutils/testsuite/ChangeLog
2005-01-04 Martin Koegler <mkoegler@auto.tuwien.ac.at>
* binutils-all/testprog.c: Add prototype for printf() and make
type of "string" array be "char" in order to avoid compile time
warnings.
Cheers
Nick