fix gcc 4.7 warnings (thanks Tuncer Ayaz)

R=rsc
http://codereview.appspot.com/6744053
This commit is contained in:
Russ Cox 2012-10-20 13:36:52 -04:00
parent 53527a6e78
commit 220c15d2b7
14 changed files with 9 additions and 40 deletions

View file

@ -63,7 +63,7 @@ enum
void
setstatus(int bits)
{
static int startindx = -1, endindx;
static int startindx = -1;
static char *startname, *endname;
static int lastbits;
char buf[100];
@ -91,16 +91,13 @@ setstatus(int bits)
}
lastbits = bits;
startindx = tagindx;
endindx = tagindx;
startname = tagname;
endname = tagname;
} else {
endindx = tagindx;
endname = tagname;
}
if(bits < 0) {
startindx = -1;
endindx = -1;
return;
}
}