]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix a compile time warning in the linker testsuite when compiling using clang.
authorNick Clifton <nickc@redhat.com>
Thu, 11 Jun 2020 08:27:41 +0000 (09:27 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 11 Jun 2020 08:27:41 +0000 (09:27 +0100)
* testsuite/ld-elf/pr26094-1b.c (main): Change return type to
int.

ld/ChangeLog
ld/testsuite/ld-elf/pr26094-1b.c

index 18fec01e5abe209363b8ba9b185993232caf8434..c8a6cbc7e5b0c9fbe94a67ee35ee3b37b1433ae0 100644 (file)
@@ -1,3 +1,8 @@
+2020-06-11  Nick Clifton  <nickc@redhat.com>
+
+       * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
+       int.
+
 2020-06-10  Alan Modra  <amodra@gmail.com>
 
        * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
index 650a36fd89396cb807c7af6f8fa741b2f85c7f6f..9d34049984a089987b168072522a23a650bf6fb5 100644 (file)
@@ -1,6 +1,6 @@
 extern void *foo();
 
-void main()
+int main (void)
 {
-    foo();
-}
\ No newline at end of file
+  foo(); return 0;
+}