Commit c2e06e01 authored by David du Colombier's avatar David du Colombier Committed by Brad Fitzpatrick

cmd/gc, cmd/ld: fix warnings on Plan 9

src/cmd/gc/closure.c:133 param declared and not used: nowrap
src/cmd/gc/const.c:1139 set and not used: t1
src/cmd/ld/data.c:652 format mismatch #llx INT, arg 7
src/cmd/ld/data.c:652 format mismatch #llx INT, arg 8
src/cmd/ld/data.c:1230 set and not used: datsize

R=dave, golang-dev, lucio.dere, remyoudompheng, bradfitz
CC=golang-dev
https://golang.org/cl/8182043
parent 3a14b42e
......@@ -76,7 +76,7 @@ closurebody(NodeList *body)
return func;
}
static Node* makeclosure(Node *func, int nowrap);
static Node* makeclosure(Node *func);
void
typecheckclosure(Node *func, int top)
......@@ -125,11 +125,11 @@ typecheckclosure(Node *func, int top)
}
// Create top-level function
xtop = list(xtop, makeclosure(func, func->cvars==nil || (top&Ecall)));
xtop = list(xtop, makeclosure(func));
}
static Node*
makeclosure(Node *func, int nowrap)
makeclosure(Node *func)
{
Node *xtype, *v, *addr, *xfunc, *cv;
NodeList *l, *body;
......
......@@ -1136,7 +1136,6 @@ defaultlit(Node **np, Type *t)
lno = setlineno(n);
ctype = idealkind(n);
t1 = T;
switch(ctype) {
default:
if(t != T) {
......
......@@ -650,7 +650,7 @@ datblk(int32 addr, int32 size)
break;
}
Bprint(&bso, "\treloc %.8ux/%d %s %s+%#llx [%#llx]\n",
(uint)(sym->value+r->off), r->siz, typ, rsname, r->add, r->sym->value+r->add);
(uint)(sym->value+r->off), r->siz, typ, rsname, (vlong)r->add, (vlong)(r->sym->value+r->add));
}
}
}
......@@ -1227,7 +1227,6 @@ dodata(void)
/* we finished segdata, begin segtext */
s = datap;
datsize = 0;
/* read-only data */
sect = addsection(&segtext, ".rodata", 04);
......
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