From: Nick Clifton Date: Thu, 11 Jun 2020 08:27:41 +0000 (+0100) Subject: Fix a compile time warning in the linker testsuite when compiling using clang. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=928055a3694ed97e2f8f5926acdde4039e86982d;p=binutils-gdb.git Fix a compile time warning in the linker testsuite when compiling using clang. * testsuite/ld-elf/pr26094-1b.c (main): Change return type to int. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 18fec01e5ab..c8a6cbc7e5b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2020-06-11 Nick Clifton + + * testsuite/ld-elf/pr26094-1b.c (main): Change return type to + int. + 2020-06-10 Alan Modra * testsuite/ld-elf/linux-x86.exp: Build tests when non-native. diff --git a/ld/testsuite/ld-elf/pr26094-1b.c b/ld/testsuite/ld-elf/pr26094-1b.c index 650a36fd893..9d34049984a 100644 --- a/ld/testsuite/ld-elf/pr26094-1b.c +++ b/ld/testsuite/ld-elf/pr26094-1b.c @@ -1,6 +1,6 @@ extern void *foo(); -void main() +int main (void) { - foo(); -} \ No newline at end of file + foo(); return 0; +}