1
0
mirror of https://github.com/golang/go synced 2024-11-13 17:10:21 -07:00

silence gcc warnings.

not sure if the warning in reg.c was a real bug.

R=ken
OCL=22408
CL=22410
This commit is contained in:
Russ Cox 2009-01-09 11:13:59 -08:00
parent a91af04c06
commit 8f5bba0d82
2 changed files with 2 additions and 2 deletions

View 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])

View File

@ -106,6 +106,7 @@ regopt(Prog *firstp)
first = 0;
}
r1 = R;
firstr = R;
lastr = R;
nvar = 0;