https://bugzilla.redhat.com/show_bug.cgi?id=1022983



--- Comment #14 from Matthew Miller <mat...@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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
golang mailing list
golang@lists.fedoraproject.org
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to