aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-11-06 10:08:03 +0000
committerAlan Modra <amodra@gmail.com>2000-11-06 10:08:03 +0000
commitdfef140a12e04362844301e9a4581414437d73d6 (patch)
tree35241e7a89ccaa06d3c928af6b75bdc47c76c341
parent336077544d4c094d07c95403b637c2c3cc16ca08 (diff)
downloadgdb-dfef140a12e04362844301e9a4581414437d73d6.zip
gdb-dfef140a12e04362844301e9a4581414437d73d6.tar.gz
gdb-dfef140a12e04362844301e9a4581414437d73d6.tar.bz2
Fix compilation warnings as otherwise we fail the test.
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-elfvsb/main.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 3420d99..d350d66 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-06 Alan Modra <alan@linuxcare.com.au>
+
+ * ld-elfvsb/main.c (PROTECTED_CHECK): Include stdio.h.
+ (main): Prune unused args.
+
2000-10-17 Philip Blundell <pb@futuretv.com>
* lib/ld-lib.exp, ld-elfvsb: Update from trunk version.
diff --git a/ld/testsuite/ld-elfvsb/main.c b/ld/testsuite/ld-elfvsb/main.c
index a00b70f..26542b8 100644
--- a/ld/testsuite/ld-elfvsb/main.c
+++ b/ld/testsuite/ld-elfvsb/main.c
@@ -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 \