From owner-svn-src-all@freebsd.org Tue Aug 25 15:33:10 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4EABD99A6A1; Tue, 25 Aug 2015 15:33:10 +0000 (UTC) (envelope-from araujo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3EF39107F; Tue, 25 Aug 2015 15:33:10 +0000 (UTC) (envelope-from araujo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7PFXAbf000219; Tue, 25 Aug 2015 15:33:10 GMT (envelope-from araujo@FreeBSD.org) Received: (from araujo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7PFXAgk000218; Tue, 25 Aug 2015 15:33:10 GMT (envelope-from araujo@FreeBSD.org) Message-Id: <201508251533.t7PFXAgk000218@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: araujo set sender to araujo@FreeBSD.org using -f From: Marcelo Araujo Date: Tue, 25 Aug 2015 15:33:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287131 - head/sbin/newfs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2015 15:33:10 -0000 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);