]> Cypherpunks.ru repositories - gostls13.git/commitdiff
misc/cgo/test: remove unnecessary forward declaration
authorBryan C. Mills <bcmills@google.com>
Mon, 22 Nov 2021 14:50:47 +0000 (09:50 -0500)
committerBryan C. Mills <bcmills@google.com>
Mon, 22 Nov 2021 18:50:19 +0000 (18:50 +0000)
This test otherwise fails to build on windows/arm64 as of CL 364774
due to a warning (promoted to an error) about a mismatched dllexport
attribute. Fortunately, it seems not to need the forward-declared
function in this file anyway.

Updates #49633
Updates #49721

Change-Id: Ia4698b85077d0718a55d2cc667a7950f1d8e50ab
Reviewed-on: https://go-review.googlesource.com/c/go/+/366075
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/test/testx.go

index a61b47c41d87548ba88c577f17d4fbfc4013f5ec..8ec84a8b22e01bcb6b6d78bd16f92d74e6d7cb7d 100644 (file)
@@ -113,7 +113,6 @@ typedef struct {
        int i;
 } Issue38408, *PIssue38408;
 
-extern void GoFunc49633(void *context);
 extern void cfunc49633(void*); // definition is in test.go
 */
 import "C"