Fix warning when compiling with gcc46:

error: variable 'defname' set but not use

Approved by:	dim
MFC after:	3 day
This commit is contained in:
Eitan Adler 2012-01-10 02:55:43 +00:00
parent 3e519b7cc1
commit af9eff1f20
1 changed files with 0 additions and 3 deletions

View File

@ -347,17 +347,14 @@ newfile(void)
{
long i, maxfiles, tfnum;
static long fnum;
static int defname;
static char *fpnt;
if (ofd == -1) {
if (fname[0] == '\0') {
fname[0] = 'x';
fpnt = fname + 1;
defname = 1;
} else {
fpnt = fname + strlen(fname);
defname = 0;
}
ofd = fileno(stdout);
}