Skip to content
Snippets Groups Projects
Commit 9b59dc44 authored by Austin Clements's avatar Austin Clements
Browse files

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

parent e64c661a
Branches
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment