diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-10 02:55:43 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-10 02:55:43 +0000 |
commit | 26ae1ef8728b9f08912b33bb7c29acf87a2d2a56 (patch) | |
tree | 2a7c2021f39732e9386aa59f461f31cf9225af64 /usr.bin/split | |
parent | a761ba449194307c31b6b1a7b0e4b5405befbc27 (diff) | |
download | FreeBSD-src-26ae1ef8728b9f08912b33bb7c29acf87a2d2a56.zip FreeBSD-src-26ae1ef8728b9f08912b33bb7c29acf87a2d2a56.tar.gz |
Fix warning when compiling with gcc46:
error: variable 'defname' set but not use
Approved by: dim
MFC after: 3 day
Diffstat (limited to 'usr.bin/split')
-rw-r--r-- | usr.bin/split/split.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c index 0258c8c..be4befe 100644 --- a/usr.bin/split/split.c +++ b/usr.bin/split/split.c @@ -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); } |