diff options
author | Nick Clifton <nickc@redhat.com> | 2020-06-11 09:27:41 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-06-11 09:27:41 +0100 |
commit | 928055a3694ed97e2f8f5926acdde4039e86982d (patch) | |
tree | ca54962b815acf2e667463f089707a69100a1015 /ld/testsuite | |
parent | f0aa30258af17ab0234951cbf9644837a99036e5 (diff) | |
download | gdb-928055a3694ed97e2f8f5926acdde4039e86982d.zip gdb-928055a3694ed97e2f8f5926acdde4039e86982d.tar.gz gdb-928055a3694ed97e2f8f5926acdde4039e86982d.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-elf/pr26094-1b.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-elf/pr26094-1b.c b/ld/testsuite/ld-elf/pr26094-1b.c index 650a36f..9d34049 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; +} |