Commit 9f9c9abb authored by David du Colombier's avatar David du Colombier

cmd/8g, cmd/gc: fix warnings on Plan 9

warning: src/cmd/8g/ggen.c:35 non-interruptable temporary
warning: src/cmd/gc/walk.c:656 set and not used: l
warning: src/cmd/gc/walk.c:658 set and not used: l

LGTM=minux.ma
R=golang-codereviews, minux.ma
CC=golang-codereviews
https://golang.org/cl/83660043
parent 96d90d09
...@@ -32,7 +32,8 @@ defframe(Prog *ptxt) ...@@ -32,7 +32,8 @@ defframe(Prog *ptxt)
// so that the garbage collector only sees initialized values // so that the garbage collector only sees initialized values
// when it looks for pointers. // when it looks for pointers.
p = ptxt; p = ptxt;
lo = hi = 0; hi = 0;
lo = hi;
ax = 0; ax = 0;
for(l=curfn->dcl; l != nil; l = l->next) { for(l=curfn->dcl; l != nil; l = l->next) {
n = l->n; n = l->n;
......
...@@ -653,9 +653,7 @@ walkexpr(Node **np, NodeList **init) ...@@ -653,9 +653,7 @@ walkexpr(Node **np, NodeList **init)
r = n->rlist->n; r = n->rlist->n;
walkexprlistsafe(n->list, init); walkexprlistsafe(n->list, init);
walkexpr(&r, init); walkexpr(&r, init);
l = n->list->n;
l = n->list->next->n;
ll = ascompatet(n->op, n->list, &r->type, 0, init); ll = ascompatet(n->op, n->list, &r->type, 0, init);
n = liststmt(concat(list1(r), ll)); n = liststmt(concat(list1(r), ll));
goto ret; goto ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment