From 6649db3523f32000dd6ddd9ac8add49f53e553a6 Mon Sep 17 00:00:00 2001 From: Doug Evans <dje@google.com> Date: Mon, 25 Aug 2014 12:40:54 -0700 Subject: 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(-) (limited to 'gdb') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1428f4d..cac4210 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2014-08-25 Doug Evans <dje@google.com> + * gdb.mi/basics.c (callee3, callee2, callee1): Specify result type. + (main): Ditto. + +2014-08-25 Doug Evans <dje@google.com> + * gdb.threads/thread-execl.exp: #include <stdio.h>. 2014-08-24 Yao Qi <yao@codesourcery.com> diff --git a/gdb/testsuite/gdb.mi/basics.c b/gdb/testsuite/gdb.mi/basics.c index 0a4f9de..0eabcd1 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); -- cgit v1.1