Permalink
Browse files

Remove unused 'state' variable that broke the build in recent gcc's

  • Loading branch information...
1 parent e64c661 commit 9b59dc44dca3299321531900254d71dddd87a476 @aclements aclements committed Sep 7, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 console.c
View
@@ -53,7 +53,7 @@ printint(int xx, int base, int sign)
void
cprintf(char *fmt, ...)
{
- int i, c, state, locking;
+ int i, c, locking;
uint *argp;
char *s;
@@ -65,7 +65,6 @@ cprintf(char *fmt, ...)
panic("null fmt");
argp = (uint*)(void*)(&fmt + 1);
- state = 0;
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
if(c != '%'){
consputc(c);

0 comments on commit 9b59dc4

Please sign in to comment.