commit 9b59dc44dca3299321531900254d71dddd87a476
parent e64c661ae8b91bd7e858bb1895bef96e6ac2b4bb
Author: Austin Clements <amdragon@mit.edu>
Date: Wed, 7 Sep 2011 16:39:27 -0400
Remove unused 'state' variable that broke the build in recent gcc's
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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);