1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:44:39 -07:00

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
This commit is contained in:
Fazlul Shahriar 2011-04-25 12:14:30 -04:00 committed by Russ Cox
parent a8bf6f32cc
commit f1781bec3b
2 changed files with 1 additions and 6 deletions

View File

@ -625,12 +625,8 @@ void
cgen_div(int op, Node *nl, Node *nr, Node *res)
{
Node ax, dx, oldax, olddx;
int rax, rdx;
Type *t;
rax = reg[D_AX];
rdx = reg[D_DX];
if(is64(nl->type))
fatal("cgen_div %T", nl->type);

View File

@ -431,7 +431,7 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn)
int32 ipc;
Prog *p;
int v, o, r, skip;
Sym *h[NSYM], *s, *di;
Sym *h[NSYM], *s;
uint32 sig;
int ntext;
int32 eof;
@ -442,7 +442,6 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn)
lastp = nil;
ntext = 0;
eof = Boffset(f) + len;
di = S;
src[0] = 0;