Author: eadler
Date: Sun Apr 19 08:45:37 2015
New Revision: 281733
URL: https://svnweb.freebsd.org/changeset/base/281733

Log:
  tzsetup: remove set but unused variable
        - leave a comment explaining which variable it used to be
  
  Reported by:  gcc5.1

Modified:
  head/usr.sbin/tzsetup/tzsetup.c

Modified: head/usr.sbin/tzsetup/tzsetup.c
==============================================================================
--- head/usr.sbin/tzsetup/tzsetup.c     Sun Apr 19 08:31:26 2015        
(r281732)
+++ head/usr.sbin/tzsetup/tzsetup.c     Sun Apr 19 08:45:37 2015        
(r281733)
@@ -475,7 +475,7 @@ read_zones(void)
        FILE            *fp;
        struct continent *cont;
        size_t          len;
-       char            *line, *tlc, *coord, *file, *descr, *p;
+       char            *line, *tlc, *file, *descr, *p;
        int             lineno;
 
        fp = fopen(path_zonetab, "r");
@@ -495,7 +495,7 @@ read_zones(void)
                if (strlen(tlc) != 2)
                        errx(1, "%s:%d: invalid country code `%s'",
                            path_zonetab, lineno, tlc);
-               coord = strsep(&line, "\t");     /* Unused */
+               /* coord = */ strsep(&line, "\t");       /* Unused */
                file = strsep(&line, "\t");
                p = strchr(file, '/');
                if (p == 0)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to