Author: ngie
Date: Tue Mar 28 21:16:11 2017
New Revision: 316108
URL: https://svnweb.freebsd.org/changeset/base/316108

Log:
  Remove -Wunused-but-set variable, `tail` in `ls_getdir(..)`
  
  This variable has been unused since its inception in r40106.
  
  MFC after:    3 days
  Reported by:  amd64-gcc-6.3.0 (devel/amd64-xtoolchain-gcc)
  Sponsored by: Dell EMC Isilon

Modified:
  head/sys/boot/common/ls.c

Modified: head/sys/boot/common/ls.c
==============================================================================
--- head/sys/boot/common/ls.c   Tue Mar 28 20:52:59 2017        (r316107)
+++ head/sys/boot/common/ls.c   Tue Mar 28 21:16:11 2017        (r316108)
@@ -139,9 +139,8 @@ ls_getdir(char **pathp)
     struct stat        sb;
     int                fd;
     const char *cp;
-    char       *path, *tail;
+    char       *path;
     
-    tail = NULL;
     fd = -1;
 
     /* one extra byte for a possible trailing slash required */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to