diff options
author | Alan Donovan <adonovan@google.com> | 2015-06-05 13:27:49 -0400 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2015-06-05 18:05:16 +0000 |
commit | 232331f0c7c60dc2cfde46b356e5610331179ad3 (patch) | |
tree | 824bed78296e4019073e1517865da891f5cf8b10 /src/runtime/stack_test.go | |
parent | a9c14d1ab5573557a0e5f871791791b4943a3ce8 (diff) | |
download | go-232331f0c7c60dc2cfde46b356e5610331179ad3.tar.gz go-232331f0c7c60dc2cfde46b356e5610331179ad3.zip |
runtime: add blank assignment to defeat "declared but not used" error from go/types
gc should ideally consider this an error too; see golang/go#8560.
Change-Id: Ieee71c4ecaff493d7f83e15ba8c8a04ee90a4cf1
Reviewed-on: https://go-review.googlesource.com/10757
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/runtime/stack_test.go')
-rw-r--r-- | src/runtime/stack_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/stack_test.go b/src/runtime/stack_test.go index b6f20686bf..48058b95cb 100644 --- a/src/runtime/stack_test.go +++ b/src/runtime/stack_test.go @@ -329,6 +329,7 @@ func TestPanicFar(t *testing.T) { time.Sleep(time.Millisecond) panic(1) }) + _ = xtree } type xtreeNode struct { |