]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/8g, cmd/gc: fix warnings on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Wed, 2 Apr 2014 19:33:50 +0000 (21:33 +0200)
committerDavid du Colombier <0intro@gmail.com>
Wed, 2 Apr 2014 19:33:50 +0000 (21:33 +0200)
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

src/cmd/8g/ggen.c
src/cmd/gc/walk.c

index 35494f795b475bc5592b8a3ab11bacf8f98be09a..1b7d81dee60bc0168c7daa50f0c36104b29a79d9 100644 (file)
@@ -32,7 +32,8 @@ defframe(Prog *ptxt)
        // so that the garbage collector only sees initialized values
        // when it looks for pointers.
        p = ptxt;
-       lo = hi = 0;
+       hi = 0;
+       lo = hi;
        ax = 0;
        for(l=curfn->dcl; l != nil; l = l->next) {
                n = l->n;
index 4137a79555a1a73647bf300cf153914067fb338b..1ffe8937f80530afa8ac9e2bc82d29f3f6c5ff83 100644 (file)
@@ -653,9 +653,7 @@ walkexpr(Node **np, NodeList **init)
                r = n->rlist->n;
                walkexprlistsafe(n->list, init);
                walkexpr(&r, init);
-               l = n->list->n;
 
-               l = n->list->next->n;
                ll = ascompatet(n->op, n->list, &r->type, 0, init);
                n = liststmt(concat(list1(r), ll));
                goto ret;