This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix compile time warning message when running the PR19874 linker test.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 9 Oct 2017 14:01:20 -0000
- Subject: [binutils-gdb] Fix compile time warning message when running the PR19874 linker test.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6753e38a5c71b4b4ae81bba41fb67890abfa4e0f
commit 6753e38a5c71b4b4ae81bba41fb67890abfa4e0f
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Oct 9 15:00:31 2017 +0100
Fix compile time warning message when running the PR19874 linker test.
PR ld/19874
* testsuite/ld-x86-64/pr19784c.c (bar): Change return type to void.
Diff:
---
ld/ChangeLog | 5 +++++
ld/testsuite/ld-x86-64/pr19784c.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 18d4b1e..e7d7128 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-09 Nick Clifton <nickc@redhat.com>
+
+ PR ld/19874
+ * testsuite/ld-x86-64/pr19784c.c (bar): Change return type to void.
+
2017-10-09 H.J. Lu <hongjiu.lu@intel.com>
PR ld/22267
diff --git a/ld/testsuite/ld-x86-64/pr19784c.c b/ld/testsuite/ld-x86-64/pr19784c.c
index 117dfec..eb2c9d0 100644
--- a/ld/testsuite/ld-x86-64/pr19784c.c
+++ b/ld/testsuite/ld-x86-64/pr19784c.c
@@ -3,7 +3,7 @@
extern void abort (void);
extern int foo (int) __attribute__ ((visibility("hidden")));
-int bar()
+void bar(void)
{
if (foo (5) != 5)
abort ();