From 4ba677c6ea5203960476a0dfc73f7ffa3442cd7d Mon Sep 17 00:00:00 2001 From: Lucio De Re Date: Wed, 7 Sep 2011 13:55:48 -0400 Subject: [PATCH] gc: silence Plan 9 warnings R=golang-dev CC=golang-dev, rsc https://golang.org/cl/4975055 --- src/cmd/gc/sinit.c | 2 ++ src/cmd/gc/typecheck.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd/gc/sinit.c b/src/cmd/gc/sinit.c index 18856cd3ac8..4550577a4f3 100644 --- a/src/cmd/gc/sinit.c +++ b/src/cmd/gc/sinit.c @@ -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; diff --git a/src/cmd/gc/typecheck.c b/src/cmd/gc/typecheck.c index 7b10f33f087..b9c302ce8e0 100644 --- a/src/cmd/gc/typecheck.c +++ b/src/cmd/gc/typecheck.c @@ -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);