https://bugzilla.redhat.com/show_bug.cgi?id=1022983
--- Comment #14 from Matthew Miller mattdm@redhat.com --- Okay, so, here is the test code that is failing:
main.go: ----------------- package main
/* void foo(void) {} */ import "C"
import ( "fmt" "runtime" )
func main() { C.foo() buf := make([]byte, 1) runtime.Stack(buf, true) fmt.Printf("OK\n") } -------------------- $ go run main.go # command-line-arguments ./main.go: In function ‘_cgo_92e4c70c8af1_Cfunc_foo’: ./main.go:30:49: warning: unused variable ‘a’ [-Wunused-variable] OK
but only if CC points to the version which wraps the $RPM_OPT_FLAGS