]> Cypherpunks repositories - gostls13.git/commitdiff
silence gcc warnings.
authorRuss Cox <rsc@golang.org>
Fri, 9 Jan 2009 19:13:59 +0000 (11:13 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 9 Jan 2009 19:13:59 +0000 (11:13 -0800)
not sure if the warning in reg.c was a real bug.

R=ken
OCL=22408
CL=22410

src/cmd/6g/obj.c
src/cmd/6g/reg.c

index 25800bb4e968a92f025470ca8fccb230a890118d..fa2c59ddddf35f23c6ccc3ff963120f20b63418b 100644 (file)
@@ -628,7 +628,6 @@ dumpsigt(Type *progt, Type *ifacet, Type *rcvrt, Type *methodt, Sym *s)
 {
        Type *f;
        int o;
-       int indir;
        Sig *a, *b;
        Prog *p;
        char buf[NSYMB];
@@ -673,7 +672,7 @@ dumpsigt(Type *progt, Type *ifacet, Type *rcvrt, Type *methodt, Sym *s)
 
                                // indirect vs direct mismatch
                                Sym *oldname, *newname;
-                               Type *oldthis, *oldtype, *newthis;
+                               Type *oldthis, *newthis;
 
                                newthis = ifacet;
                                if(isptr[newthis->etype])
index 0613f0015f94c87e50d7909b611b001e67f11f17..2efc0dc9bf4ea5985fe044cb6deadb41365ab2f5 100644 (file)
@@ -106,6 +106,7 @@ regopt(Prog *firstp)
                first = 0;
        }
 
+       r1 = R;
        firstr = R;
        lastr = R;
        nvar = 0;