mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
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:
parent
3e519b7cc1
commit
af9eff1f20
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229905
@ -347,17 +347,14 @@ newfile(void)
|
|||||||
{
|
{
|
||||||
long i, maxfiles, tfnum;
|
long i, maxfiles, tfnum;
|
||||||
static long fnum;
|
static long fnum;
|
||||||
static int defname;
|
|
||||||
static char *fpnt;
|
static char *fpnt;
|
||||||
|
|
||||||
if (ofd == -1) {
|
if (ofd == -1) {
|
||||||
if (fname[0] == '\0') {
|
if (fname[0] == '\0') {
|
||||||
fname[0] = 'x';
|
fname[0] = 'x';
|
||||||
fpnt = fname + 1;
|
fpnt = fname + 1;
|
||||||
defname = 1;
|
|
||||||
} else {
|
} else {
|
||||||
fpnt = fname + strlen(fname);
|
fpnt = fname + strlen(fname);
|
||||||
defname = 0;
|
|
||||||
}
|
}
|
||||||
ofd = fileno(stdout);
|
ofd = fileno(stdout);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user