提交 9b59dc44 创建 作者: Austin Clements's avatar Austin Clements

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

上级 e64c661a
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论