mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Don't pass unused args to printf (#311)
The final print does not print any content, only the byte-offset of the end-block, which makes the A, B params unused. From gcc: bd.c:77:17: warning: too many arguments for format [-Wformat-extra-args] if (o) printf("%08x\n", o, A, B);
This commit is contained in:
parent
777d08a839
commit
206091617a
1 changed files with 1 additions and 1 deletions
|
@ -77,6 +77,6 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
o += n;
|
o += n;
|
||||||
}
|
}
|
||||||
if (o) printf("%08x\n", o, A, B);
|
if (o) printf("%08x\n", o);
|
||||||
return !feof(f);
|
return !feof(f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue