Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2015 15:33:10 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287131 - head/sbin/newfs
Message-ID:  <201508251533.t7PFXAgk000218@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Tue Aug 25 15:33:09 2015
New Revision: 287131
URL: https://svnweb.freebsd.org/changeset/base/287131

Log:
  Code cleanup unused-but-set-variable spotted by gcc.
  
  Approved by:	bapt (mentor)
  Differential Revision:	D3475

Modified:
  head/sbin/newfs/newfs.c

Modified: head/sbin/newfs/newfs.c
==============================================================================
--- head/sbin/newfs/newfs.c	Tue Aug 25 15:32:08 2015	(r287130)
+++ head/sbin/newfs/newfs.c	Tue Aug 25 15:33:09 2015	(r287131)
@@ -130,7 +130,6 @@ main(int argc, char *argv[])
 {
 	struct partition *pp;
 	struct disklabel *lp;
-	struct partition oldpartition;
 	struct stat st;
 	char *cp, *special;
 	intmax_t reserved;
@@ -362,7 +361,6 @@ main(int argc, char *argv[])
 			pp = &lp->d_partitions[RAW_PART];
 		else
 			pp = &lp->d_partitions[*cp - 'a'];
-		oldpartition = *pp;
 		if (pp->p_size == 0)
 			errx(1, "%s: `%c' partition is unavailable",
 			    special, *cp);



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