cmd/cgo: unused parameter when exporting Go function #71225
Labels
BugReport
Issues describing a possible bug in the Go implementation.
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.22.10 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
I am writing an application that uses cgo. For this reason, I want to compile with all warnings as errors.
Here is a minimal reproducer of the issue.
What did you see happen?
I believe it is referring to _cgo_main.c, which looks like this:
What did you expect to see?
No errors.
The text was updated successfully, but these errors were encountered: