svn commit: r316108 - head/sys/boot/common

Ngie Cooper ngie at FreeBSD.org
Tue Mar 28 21:16:13 UTC 2017


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 */


More information about the svn-src-all mailing list