]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/testdata/testprogcgo: add explicit return value to signalThread
authorMichael Munday <munday@ca.ibm.com>
Wed, 5 Oct 2016 15:24:07 +0000 (11:24 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 5 Oct 2016 15:36:00 +0000 (15:36 +0000)
Should fix the clang builder.

Change-Id: I3ee34581b6a7ec902420de72a8a08a2426997782
Reviewed-on: https://go-review.googlesource.com/30363
Run-TryBot: Michael Munday <munday@ca.ibm.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/testdata/testprogcgo/racesig.go

index e126b8becbf7ba660ab4dcb805a0d89778ad3b9c..d0c1c3ce54004ec4f30df39e7a9b22a29d6e877d 100644 (file)
@@ -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);