]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: add blank assignment to defeat "declared but not used" error from go/types
authorAlan Donovan <adonovan@google.com>
Fri, 5 Jun 2015 17:27:49 +0000 (13:27 -0400)
committerAlan Donovan <adonovan@google.com>
Fri, 5 Jun 2015 18:05:16 +0000 (18:05 +0000)
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>
src/runtime/stack_test.go

index b6f20686bf0c8c85bff156b08cef58917fd00013..48058b95cbe044477aa7bcb11f056598cf055496 100644 (file)
@@ -329,6 +329,7 @@ func TestPanicFar(t *testing.T) {
                time.Sleep(time.Millisecond)
                panic(1)
        })
+       _ = xtree
 }
 
 type xtreeNode struct {