From: Doug Evans Date: Mon, 25 Aug 2014 19:40:54 +0000 (-0700) Subject: Fix clang compilation errors in gdb.mi/basics.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6649db3523f32000dd6ddd9ac8add49f53e553a6;p=binutils-gdb.git Fix clang compilation errors in gdb.mi/basics.c. gdb/testsuite/ChangeLog: * gdb.mi/basics.c (callee3, callee2, callee1): Specify result type. (main): Ditto. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1428f4da083..cac42103c99 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-08-25 Doug Evans + + * gdb.mi/basics.c (callee3, callee2, callee1): Specify result type. + (main): Ditto. + 2014-08-25 Doug Evans * gdb.threads/thread-execl.exp: #include . diff --git a/gdb/testsuite/gdb.mi/basics.c b/gdb/testsuite/gdb.mi/basics.c index 0a4f9de0204..0eabcd193bc 100644 --- a/gdb/testsuite/gdb.mi/basics.c +++ b/gdb/testsuite/gdb.mi/basics.c @@ -29,17 +29,17 @@ int callee4 (void) C = A + B; return 0; } -callee3 (char *strarg) +void callee3 (char *strarg) { callee4 (); } -callee2 (int intarg, char *strarg) +void callee2 (int intarg, char *strarg) { callee3 (strarg); } -callee1 (int intarg, char *strarg, double fltarg) +void callee1 (int intarg, char *strarg, double fltarg) { callee2 (intarg, strarg); } @@ -57,7 +57,7 @@ void do_nothing (void) { } -main () +int main () { callee1 (2, "A string argument.", 3.5); callee1 (2, "A string argument.", 3.5);