1
0
mirror of https://github.com/golang/go synced 2024-11-23 19:40:08 -07:00

liblink: fix warnings on Plan 9

warning: /usr/go/src/liblink/asm5.c:720 set and not used: m
warning: /usr/go/src/liblink/asm5.c:807 set and not used: c

LGTM=minux
R=minux
CC=golang-codereviews
https://golang.org/cl/108570043
This commit is contained in:
David du Colombier 2014-07-11 22:24:45 +02:00
parent 125d1e9269
commit 90c146f390

View File

@ -717,7 +717,6 @@ span5(Link *ctxt, LSym *cursym)
ctxt->curp = p;
p->pc = c;
o = oplook(ctxt, p);
m = o->size;
if(ctxt->headtype != Hnacl) {
m = o->size;
} else {
@ -800,12 +799,10 @@ span5(Link *ctxt, LSym *cursym)
}
*/
opc = p->pc;
if(ctxt->headtype != Hnacl) {
if(ctxt->headtype != Hnacl)
m = o->size;
} else {
else
m = asmoutnacl(ctxt, c, p, o, nil);
c = p->pc; // asmoutnacl might change pc for alignment
}
if(p->pc != opc) {
bflag = 1;
//print("%P pc changed %d to %d in iter. %d\n", p, opc, (int32)p->pc, times);