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:
David Blaikie 2014-04-11 17:20:49 -07:00
parent a155684382
commit 41f1ada5d2
3 changed files with 8 additions and 2 deletions

View File

@ -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>

View File

@ -56,7 +56,7 @@ worker (void *arg)
unslept = sleep (unslept);
if (exit_first_thread && id == 0)
return;
return NULL;
break_at_me (id, i);
}

View File

@ -37,7 +37,7 @@ thread_function (void *arg)
if (errno != EINTR)
{
perror ("thread_function");
return;
return NULL;
}
}
return NULL;