]> Cypherpunks repositories - gostls13.git/commit
test: avoid "declared but not used" errors in shift1.go
authorIan Lance Taylor <iant@golang.org>
Sun, 20 Jul 2014 19:25:24 +0000 (12:25 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 20 Jul 2014 19:25:24 +0000 (12:25 -0700)
commit8259b0136e1838e440ff32785622a4cc22c14d55
tree31b4d09e42824926edb37d8c33a4892f59fdb726
parent6eb5eb398b7c37079526bbf7d5987be8c054bb50
test: avoid "declared but not used" errors in shift1.go

I'm improving gccgo's detection of variables that are only set
but not used, and it triggers additional errors on this code.
The new gccgo errors are correct; gc seems to suppress them
due to the other, expected, errors.  This change uses the
variables so that no compiler will complain.

gccgo change is https://golang.org/cl/119920043 .

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/116050043
test/shift1.go