Commit f1781bec authored by Fazlul Shahriar's avatar Fazlul Shahriar Committed by Russ Cox

8g,8l: fix "set but not used" gcc error

$ gcc --version
gcc (GCC) 4.6.0 20110415 (prerelease)

R=golang-dev, rsc1, rsc
CC=golang-dev
https://golang.org/cl/4442080
parent a8bf6f32
...@@ -625,12 +625,8 @@ void ...@@ -625,12 +625,8 @@ void
cgen_div(int op, Node *nl, Node *nr, Node *res) cgen_div(int op, Node *nl, Node *nr, Node *res)
{ {
Node ax, dx, oldax, olddx; Node ax, dx, oldax, olddx;
int rax, rdx;
Type *t; Type *t;
rax = reg[D_AX];
rdx = reg[D_DX];
if(is64(nl->type)) if(is64(nl->type))
fatal("cgen_div %T", nl->type); fatal("cgen_div %T", nl->type);
......
...@@ -431,7 +431,7 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn) ...@@ -431,7 +431,7 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn)
int32 ipc; int32 ipc;
Prog *p; Prog *p;
int v, o, r, skip; int v, o, r, skip;
Sym *h[NSYM], *s, *di; Sym *h[NSYM], *s;
uint32 sig; uint32 sig;
int ntext; int ntext;
int32 eof; int32 eof;
...@@ -442,7 +442,6 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn) ...@@ -442,7 +442,6 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn)
lastp = nil; lastp = nil;
ntext = 0; ntext = 0;
eof = Boffset(f) + len; eof = Boffset(f) + len;
di = S;
src[0] = 0; src[0] = 0;
......
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