Fix warnings trivial warnings.

Fix warnings about:
 . Unused variables
 . format mismatch in printf/scanf format string and arguments
 . Missing parenthesis around assignment as truth values
 . Clang warnings anout unknown GCC pragma
This commit is contained in:
2012-12-11 18:42:21 +01:00
parent 77399bd649
commit 0ac803292e
65 changed files with 297 additions and 284 deletions

View File

@@ -34,8 +34,6 @@ char tmpX[] = "tmpXXXXXX";
void spoolerr(char *file)
{
int e= errno;
unlink(jobX);
unlink(tmpX);
fatal(file);
@@ -172,7 +170,7 @@ int flush(void)
count = 0;
}
int put(int c)
void put(int c)
/* Send characters to the output buffer to be printed and do so if the buffer
* is full. Track the position of the write-head in `column' and `line'.
*/