cmd/cgo: main declared without a prototype #70769
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
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.
What did you see happen?
The contents of _cgo_main.c are:
My understanding is it wants
int main(void)
instead ofint main()
.What did you expect to see?
I expected the auto-generated cgo to not trigger any warnings.
The text was updated successfully, but these errors were encountered: