summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-09 11:13:59 -0800
committerRuss Cox <rsc@golang.org>2009-01-09 11:13:59 -0800
commita1aa0d06b08d2f5f8c8e918bcde4cc65dd9cd338 (patch)
treead56e7cb29913866053b181c799bc5ffc5877f48 /src
parent591ee86236aeaf4101f2834d0df77876e2db02bd (diff)
downloadgolang-a1aa0d06b08d2f5f8c8e918bcde4cc65dd9cd338.tar.gz
silence gcc warnings.
not sure if the warning in reg.c was a real bug. R=ken OCL=22408 CL=22410
Diffstat (limited to 'src')
-rw-r--r--src/cmd/6g/obj.c3
-rw-r--r--src/cmd/6g/reg.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/6g/obj.c b/src/cmd/6g/obj.c
index 25800bb4e..fa2c59ddd 100644
--- a/src/cmd/6g/obj.c
+++ b/src/cmd/6g/obj.c
@@ -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])
diff --git a/src/cmd/6g/reg.c b/src/cmd/6g/reg.c
index 0613f0015..2efc0dc9b 100644
--- a/src/cmd/6g/reg.c
+++ b/src/cmd/6g/reg.c
@@ -106,6 +106,7 @@ regopt(Prog *firstp)
first = 0;
}
+ r1 = R;
firstr = R;
lastr = R;
nvar = 0;