• Ian Lance Taylor's avatar
    cmd/cgo, misc/cgo/test: make -Wdeclaration-after-statement clean · e50346d2
    Ian Lance Taylor authored
    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: 's avatarMinux Ma <minux@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    e50346d2
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...