From: Michael Munday Date: Wed, 5 Oct 2016 15:24:07 +0000 (-0400) Subject: runtime/testdata/testprogcgo: add explicit return value to signalThread X-Git-Tag: go1.8beta1~1026 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f15f1ff46f94c70b55903963a32dfccdcbe1efe5;p=gostls13.git runtime/testdata/testprogcgo: add explicit return value to signalThread Should fix the clang builder. Change-Id: I3ee34581b6a7ec902420de72a8a08a2426997782 Reviewed-on: https://go-review.googlesource.com/30363 Run-TryBot: Michael Munday Run-TryBot: Brad Fitzpatrick Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/testdata/testprogcgo/racesig.go b/src/runtime/testdata/testprogcgo/racesig.go index e126b8becb..d0c1c3ce54 100644 --- a/src/runtime/testdata/testprogcgo/racesig.go +++ b/src/runtime/testdata/testprogcgo/racesig.go @@ -31,7 +31,7 @@ static void* signalThread(void* p) { for (i = 0; i < 100; i++) { for (j = 0; j < ALLOCERS; j++) { if (pthread_kill(pt[j], SIGCHLD) < 0) { - return; + return NULL; } } usleep(1);