This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ld testsuite fix
- To: binutils at sourceware dot cygnus dot com
- Subject: ld testsuite fix
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Mon, 6 Nov 2000 21:07:28 +1100 (EST)
If CFLAGS happenned to include "-W -Wall", "make check" was failing with
/usr/src/binutils-current/ld/testsuite/ld-elfvsb/main.c: In function `main':
/usr/src/binutils-current/ld/testsuite/ld-elfvsb/main.c:14: warning: implicit declaration of function `puts'
/usr/src/binutils-current/ld/testsuite/ld-elfvsb/main.c:6: warning: unused parameter `argc'
/usr/src/binutils-current/ld/testsuite/ld-elfvsb/main.c:7: warning: unused parameter `argv'
ERROR: /usr/src/binutils-current/ld/testsuite/ld-elfvsb/main.c: compilation failed
Applying to trunk and branch.
ld/testsuite/ChangeLog
* ld-elfvsb/main.c (PROTECTED_CHECK): Include stdio.h.
(main): Prune unused args.
Alan Modra
--
Linuxcare. Support for the Revolution.
Index: testsuite/ld-elfvsb/main.c
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elfvsb/main.c,v
retrieving revision 1.5
diff -u -p -r1.5 main.c
--- main.c 2000/07/16 21:29:32 1.5
+++ main.c 2000/11/06 09:59:32
@@ -1,10 +1,9 @@
#ifdef PROTECTED_CHECK
#include <features.h>
+#include <stdio.h>
int
-main (argc, argv)
- int argc;
- char *argv[];
+main (void)
{
#if defined (__GLIBC__) && (__GLIBC__ > 2 \
|| (__GLIBC__ == 2 \