]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/test: fix test when using GCC 7
authorIan Lance Taylor <iant@golang.org>
Fri, 20 Jan 2017 06:04:45 +0000 (22:04 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 20 Jan 2017 21:12:19 +0000 (21:12 +0000)
commitec654e2251f0104ee63eff57fba2749da2f177e5
tree8c1c56364cb6e78ff1732bf128edc022b8809a07
parent256a605faa10bc5507597c4669cc5bc400bf487a
misc/cgo/test: fix test when using GCC 7

With GCC 7 (not yet released), cgo fails with errors like

./sigaltstack.go:65:8: call of non-function C.restoreSignalStack

I do not know precisely why. Explicitly declaring that there are no
arguments to the static function is a simple fix for the debug info.

Change-Id: Id96e1cb1e55ee37a9f1f5ad243d7ee33e71584ac
Reviewed-on: https://go-review.googlesource.com/35480
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/cgo/test/sigaltstack.go