Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 02:55:43 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r229905 - head/usr.bin/split
Message-ID:  <201201100255.q0A2thmp079480@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler (ports committer)
Date: Tue Jan 10 02:55:43 2012
New Revision: 229905
URL: http://svn.freebsd.org/changeset/base/229905

Log:
  Fix warning when compiling with gcc46:
  	 error: variable 'defname' set but not use
  
  Approved by:	dim
  MFC after:	3 day

Modified:
  head/usr.bin/split/split.c

Modified: head/usr.bin/split/split.c
==============================================================================
--- head/usr.bin/split/split.c	Tue Jan 10 02:55:35 2012	(r229904)
+++ head/usr.bin/split/split.c	Tue Jan 10 02:55:43 2012	(r229905)
@@ -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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201100255.q0A2thmp079480>