From 9e94cc3666cc5ff6ecf5930fb5da48ba62ad8080 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Mon, 22 Nov 2021 09:50:47 -0500 Subject: [PATCH] misc/cgo/test: remove unnecessary forward declaration 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 Run-TryBot: Bryan C. Mills TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- misc/cgo/test/testx.go | 1 - 1 file changed, 1 deletion(-) diff --git a/misc/cgo/test/testx.go b/misc/cgo/test/testx.go index a61b47c41d..8ec84a8b22 100644 --- a/misc/cgo/test/testx.go +++ b/misc/cgo/test/testx.go @@ -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" -- 2.48.1