summaryrefslogtreecommitdiff
path: root/test/deferprint.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-05-01 17:03:46 -0700
committerIan Lance Taylor <iant@golang.org>2016-05-02 04:42:12 +0000
commite50346d26a935cd43023856d0df65a158d867c00 (patch)
tree92f3a6e45d619e656885692cdada5fc247badb1d /test/deferprint.go
parent45f39fb46747d0c46bc25e6ef605c00e96e2dc07 (diff)
downloadgo-git-e50346d26a935cd43023856d0df65a158d867c00.tar.gz
cmd/cgo, misc/cgo/test: make -Wdeclaration-after-statement clean
I got a complaint that cgo output triggers warnings with -Wdeclaration-after-statement. I don't think it's worth testing for this--C has permitted declarations after statements since C99--but it is easy enough to fix. It may break again; so it goes. This CL also fixes errno handling to avoid getting confused if the tsan functions happen to change the global errno variable. Change-Id: I0ec7c63a6be5653ef44799d134c8d27cb5efa441 Reviewed-on: https://go-review.googlesource.com/22686 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Minux Ma <minux@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'test/deferprint.go')
0 files changed, 0 insertions, 0 deletions