The "Function pointer callbacks example" from the cgo wiki page on github
(linked below) is generating a compiler warning when I try to build it. It
can be worked around by adding `no-implicit-function-declaration", but
should be reported as bug if it works with other versions without
generating a warning?
OS: Ubuntu 15.10
go version go1.5.2 linux/amd64
gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
This does not appear to happen with older versions of gcc.
Steps to reproduce: Follow
Expected result: No compiler warnings from the `go build` command.
./cfuncs.go: In function ‘callOnMeGo_cgo’:
./cfuncs.go:11:12: warning: implicit declaration of function
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.