From 6649db3523f32000dd6ddd9ac8add49f53e553a6 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 25 Aug 2014 12:40:54 -0700 Subject: [PATCH] Fix clang compilation errors in gdb.mi/basics.c. gdb/testsuite/ChangeLog: * gdb.mi/basics.c (callee3, callee2, callee1): Specify result type. (main): Ditto. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.mi/basics.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) 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); -- 2.30.2