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);
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to