Fix compile time warning message in linker testsuite test.
authorNick Clifton <nickc@redhat.com>
Tue, 21 Feb 2017 11:00:21 +0000 (11:00 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 21 Feb 2017 11:00:21 +0000 (11:00 +0000)
* testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
about non-void function returning without a result.

ld/ChangeLog
ld/testsuite/ld-ifunc/pr18808b.c

index 1da0e991ff2b0024a5d94d9794ce64538beebcd7..c73a5c366aaa4e171c24fab983920fa546e10c51 100644 (file)
@@ -1,3 +1,8 @@
+2017-02-21  Nick Clifton  <nickc@redhat.com>
+
+       * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
+       about non-void function returning without a result.
+
 2017-02-17  Alan Modra  <amodra@gmail.com>
 
        PR 15041
index 6f0db5a66144e3c2fc470343bebbef3a01a8f345..0e189f448fe83a80e0495e3d38225c0a96664942 100644 (file)
@@ -1,24 +1,26 @@
-int foo (int x) __attribute__ ((ifunc ("resolve_foo")));
+int foo (int) __attribute__ ((ifunc ("resolve_foo")));
 extern void abort (void);
 
-static int foo_impl(int x)
+static int
+foo_impl (int x)
 {
   return x;
 }
 
-int bar()
+void
+bar (void)
 {
   int (*f)(int) = foo;
 
   if (foo (5) != 5)
     abort ();
 
-  if (f(42) != 42)
+  if (f (42) != 42)
     abort ();
 }
 
-
-void *resolve_foo (void)
+void *
+resolve_foo (void)
 {
   return (void *) foo_impl;
 }
This page took 0.027989 seconds and 4 git commands to generate.