]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/testdata/testprogcgo: fix Windows C compiler warning
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 10 May 2016 22:32:00 +0000 (15:32 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 10 May 2016 23:11:44 +0000 (23:11 +0000)
Noticed and fix by Alex Brainman.

Tested in https://golang.org/cl/23005 (which makes all compiler
warnings fatal during development)

Fixes #15623

Change-Id: Ic19999fce8bb8640d963965cc328574efadd7855
Reviewed-on: https://go-review.googlesource.com/23010
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/runtime/testdata/testprogcgo/threadpanic_windows.c

index 6f896634a6d94655e997f9c8fbb305212996999d..ba66d0f5c9564f9adbd1ddcc7e54389decf122d3 100644 (file)
@@ -8,7 +8,7 @@
 
 void gopanic(void);
 
-static unsigned int
+static unsigned int __attribute__((__stdcall__))
 die(void* x)
 {
        gopanic();