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.
This commit is contained in:
parent
a155684382
commit
41f1ada5d2
|
@ -1,3 +1,9 @@
|
|||
2014-04-14 David Blaikie <dblaikie@gmail.com>
|
||||
|
||||
* gdb.mi/non-stop.c: Add return value for non-void function return
|
||||
statement.
|
||||
* gdb.threads/staticthreads.c: Ditto.
|
||||
|
||||
2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
|
||||
Doug Evans <xdje42@gmail.com>
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ worker (void *arg)
|
|||
unslept = sleep (unslept);
|
||||
|
||||
if (exit_first_thread && id == 0)
|
||||
return;
|
||||
return NULL;
|
||||
|
||||
break_at_me (id, i);
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ thread_function (void *arg)
|
|||
if (errno != EINTR)
|
||||
{
|
||||
perror ("thread_function");
|
||||
return;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue