]> Cypherpunks repositories - gostls13.git/commitdiff
gc: silence Plan 9 warnings
authorLucio De Re <lucio.dere@gmail.com>
Wed, 7 Sep 2011 17:55:48 +0000 (13:55 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 7 Sep 2011 17:55:48 +0000 (13:55 -0400)
R=golang-dev
CC=golang-dev, rsc
https://golang.org/cl/4975055

src/cmd/gc/sinit.c
src/cmd/gc/typecheck.c

index 18856cd3ac8458837adcf9d934f43e93904e5a29..4550577a4f33b87e111ad6faa4fb49c1e41c618f 100644 (file)
@@ -1260,6 +1260,8 @@ addvalue(InitPlan *p, vlong xoffset, Node *key, Node *n)
        InitPlan *q;
        InitEntry *e;
 
+       USED(key);
+
        // special case: zero can be dropped entirely
        if(iszero(n)) {
                p->zero += n->type->width;
index 7b10f33f087d4c9e6fcd6152bc31e991b6effbd0..b9c302ce8e09e423b6f15021205d32702f0cb6c5 100644 (file)
@@ -1031,7 +1031,6 @@ reswitch:
                }
                n->left = args->n;
                n->right = args->next->n;
-               args = nil;
                n->list = nil;
                n->type = types[TINT];
                typecheck(&n->left, Erv);