Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2017 21:16:11 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316108 - head/sys/boot/common
Message-ID:  <201703282116.v2SLGBna091260@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



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