Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(753)

Issue 116050043: code review 116050043: test: avoid "declared but not used" errors in shift1.go (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 9 months ago by iant
Modified:
9 years, 9 months ago
Reviewers:
bradfitz
CC:
golang-codereviews, bradfitz
Visibility:
Public.

Description

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 http://codereview.appspot.com/119920043 .

Patch Set 1 #

Patch Set 2 : diff -r 7ef3da0152de https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M test/shift1.go View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3
iant
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 9 months ago (2014-07-20 19:17:19 UTC) #1
bradfitz
LGTM On Sun, Jul 20, 2014 at 12:17 PM, <iant@golang.org> wrote: > Reviewers: golang-codereviews, > ...
9 years, 9 months ago (2014-07-20 19:18:47 UTC) #2
iant
9 years, 9 months ago (2014-07-20 19:25:27 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=bbddc25284e9 ***

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 http://codereview.appspot.com/119920043 .

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/116050043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b