build: fix various 'set and not used' for Plan 9

R=dave, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/6501134
This commit is contained in:
Lucio De Re 2012-09-17 17:25:26 -04:00 committed by Russ Cox
parent 54193689cc
commit b29ed23ab5
7 changed files with 6 additions and 2 deletions

View file

@ -147,7 +147,6 @@ regopt(Prog *firstp)
return;
}
r1 = R;
firstr = R;
lastr = R;

View file

@ -252,6 +252,7 @@ walkclosure(Node *func, NodeList **init)
void
walkcallclosure(Node *n, NodeList **init)
{
USED(init);
if (n->op != OCALLFUNC || n->left->op != OCLOSURE) {
dump("walkcallclosure", n);
fatal("abuse of walkcallclosure");

View file

@ -949,6 +949,7 @@ esctag(EscState *e, Node *func)
Node *savefn;
NodeList *ll;
USED(e);
func->esc = EscFuncTagged;
// External functions must be assumed unsafe.

View file

@ -288,7 +288,7 @@ mpatoflt(Mpflt *a, char *as)
s = as;
base = -1;
while(base == -1) {
switch(c = *s++) {
switch(*s++) {
case '-':
case '+':
break;

View file

@ -471,6 +471,7 @@ typestruct(Type *t)
// Otherwise it will use a nil type word but still be usable
// by package runtime (because we always use the memory
// after the interface value, not the interface value itself).
USED(t);
return pkglookup("*reflect.commonType", weaktypepkg);
}

View file

@ -579,6 +579,7 @@ loaddynlinker(char *file, char *pkg, char *p, int n)
char *pend, *next, *dynlinker, *p0;
USED(file);
USED(pkg);
pend = p + n;
for(; p<pend; p=next) {
next = strchr(p, '\n');

View file

@ -356,5 +356,6 @@ static int8 badsignal[] = "runtime: signal received on thread not created by Go.
void
runtime·badsignal(int32 sig)
{
USED(sig);
runtime·pwrite(2, badsignal, sizeof badsignal - 1, -1LL);
}