We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given:
package p import "C" var x *C.void
cgo now emits:
type _Ctype_void = _Ctype_void type _Ctype_void [0]byte
in _cgo_gotypes.go. It used to only emit the second line.
_cgo_gotypes.go
The type alias needs to be suppressed.
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/240180 mentions this issue: cmd/cgo: prevent redeclaration of _Ctype_void when C.void is used
cmd/cgo: prevent redeclaration of _Ctype_void when C.void is used
Sorry, something went wrong.
a295d59
FWIW, here is a list of references to C.void in a snapshot of latest modules from the proxy from March 2020. Not a ton but more than I expected.
voids.txt
No branches or pull requests
Given:
cgo now emits:
in
_cgo_gotypes.go
. It used to only emit the second line.The type alias needs to be suppressed.
The text was updated successfully, but these errors were encountered: