From 9b59dc44dca3299321531900254d71dddd87a476 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Wed, 7 Sep 2011 16:39:27 -0400 Subject: [PATCH] Remove unused 'state' variable that broke the build in recent gcc's --- console.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/console.c b/console.c index bc2c167..766dc30 100644 --- a/console.c +++ b/console.c @@ -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);