diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-11 17:20:49 -0700 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-14 08:34:51 -0700 |
commit | 41f1ada5d2d4cff7a235644661ec30de156fd038 (patch) | |
tree | 9cbf690cdd2936c6d7d432f0faf0a1cb2bc03ba7 /gdb/testsuite/gdb.mi/non-stop.c | |
parent | a155684382884a471075e02b265b4dfbdbc79332 (diff) | |
download | fsf-binutils-gdb-41f1ada5d2d4cff7a235644661ec30de156fd038.zip fsf-binutils-gdb-41f1ada5d2d4cff7a235644661ec30de156fd038.tar.gz fsf-binutils-gdb-41f1ada5d2d4cff7a235644661ec30de156fd038.tar.bz2 |
Add return value for non-void function return statements to fix error in clang build.
Clang defaults this warning to an error, breaking the build & causing
these tests not to run.
gdb/testsuite/
* gdb.mi/non-stop.c: Add return value for non-void function return
statement.
* gdb.threads/staticthreads.c: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.mi/non-stop.c')
-rw-r--r-- | gdb/testsuite/gdb.mi/non-stop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.mi/non-stop.c b/gdb/testsuite/gdb.mi/non-stop.c index f03180e..67b68aa 100644 --- a/gdb/testsuite/gdb.mi/non-stop.c +++ b/gdb/testsuite/gdb.mi/non-stop.c @@ -56,7 +56,7 @@ worker (void *arg) unslept = sleep (unslept); if (exit_first_thread && id == 0) - return; + return NULL; break_at_me (id, i); } |