Remove unused 'state' variable that broke the build in recent gcc's
This commit is contained in:
parent
e64c661ae8
commit
9b59dc44dc
1 changed files with 1 additions and 2 deletions
|
@ -53,7 +53,7 @@ printint(int xx, int base, int sign)
|
||||||
void
|
void
|
||||||
cprintf(char *fmt, ...)
|
cprintf(char *fmt, ...)
|
||||||
{
|
{
|
||||||
int i, c, state, locking;
|
int i, c, locking;
|
||||||
uint *argp;
|
uint *argp;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ cprintf(char *fmt, ...)
|
||||||
panic("null fmt");
|
panic("null fmt");
|
||||||
|
|
||||||
argp = (uint*)(void*)(&fmt + 1);
|
argp = (uint*)(void*)(&fmt + 1);
|
||||||
state = 0;
|
|
||||||
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
|
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
|
||||||
if(c != '%'){
|
if(c != '%'){
|
||||||
consputc(c);
|
consputc(c);
|
||||||
|
|
Loading…
Reference in a new issue