diff options
author | Doug Evans <dje@google.com> | 2014-08-25 12:40:54 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-08-25 12:40:54 -0700 |
commit | 6649db3523f32000dd6ddd9ac8add49f53e553a6 (patch) | |
tree | c8349269e66d72f238e175f5d793513eb5173f6e /gdb | |
parent | 564b7600f22299c27fcf3b3bc3699194ba1d4172 (diff) | |
download | gdb-6649db3523f32000dd6ddd9ac8add49f53e553a6.zip gdb-6649db3523f32000dd6ddd9ac8add49f53e553a6.tar.gz gdb-6649db3523f32000dd6ddd9ac8add49f53e553a6.tar.bz2 |
Fix clang compilation errors in gdb.mi/basics.c.
gdb/testsuite/ChangeLog:
* gdb.mi/basics.c (callee3, callee2, callee1): Specify result type.
(main): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | 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 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); |