• Shenghou Ma's avatar
    undo CL 109640045 / f97fb06525e5 · 040eeff7
    Shenghou Ma authored
    Breaks build for FreeBSD. Probably clang related?
    
    ««« original CL description
    cmd/cgo: disable inappropriate warnings when the gcc struct is empty
    
    package main
    //#cgo CFLAGS: -Wall
    //void test() {}
    import "C"
    func main() {
        C.test()
    }
    
    This code will cause gcc issuing warnings about unused variable.
    
    This commit use offset of the second return value of
    Packages.structType to detect whether the gcc struct is empty,
    and if it's directly invoke the C function instead of writing an
    unused code.
    
    LGTM=dave, minux
    R=golang-codereviews, iant, minux, dave
    CC=golang-codereviews
    https://golang.org/cl/109640045
    
    »»»
    
    TBR=dfc
    R=dave
    CC=golang-codereviews
    https://golang.org/cl/114990044
    040eeff7
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
gofmt Loading commit data...
ld Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
yacc Loading commit data...