go/src
Shenghou Ma 040eeff71c undo CL 109640045 / f97fb06525e5
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
2014-07-18 02:59:54 -04:00
..
cmd undo CL 109640045 / f97fb06525e5 2014-07-18 02:59:54 -04:00
lib9 lib9: restore argv0 initialization code. 2014-04-21 00:08:39 -04:00
libbio libbio: add casts to eliminate -Wconversion warning 2014-04-14 09:36:47 -07:00
liblink liblink: fix precedence bug in pcdata comparison 2014-07-16 19:26:36 -04:00
pkg runtime: add throwgo 2014-07-18 16:30:38 +10:00
Make.dist
all.bash build: make nacl pass 2014-05-20 12:10:19 -04:00
all.bat
all.rc
androidtest.bash androidtest.bash: missing ! 2014-07-09 14:54:11 -04:00
clean.bash
clean.bat
clean.rc
make.bash build: make nacl pass 2014-05-20 12:10:19 -04:00
make.bat make.bat: return exit code to dashboard builder 2014-07-12 15:18:36 +10:00
make.rc lib9: enable on Plan 9 2014-02-13 20:06:41 +01:00
nacltest.bash nacltest.bash: set GOROOT before invoking cmd/go 2014-07-10 15:36:48 -04:00
race.bash race.bash: support freebsd 2014-06-24 15:47:22 -07:00
race.bat race.bash,race.bat: unset GOROOT_FINAL during tests 2014-05-07 16:34:21 +10:00
run.bash run.bash: disable tests that don't (yet) like running off the host 2014-07-08 18:41:07 -04:00
run.bat build: remove goplay from run.bash and run.bat 2014-06-02 08:44:47 +10:00
run.rc build: don't build goplay in run.rc. 2014-06-01 19:20:46 -04:00
sudo.bash