Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Oct 2009 07:43:42 +0000 (UTC)
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r198478 - head/sbin/geom/class/part
Message-ID:  <200910260743.n9Q7hgap081068@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lulf
Date: Mon Oct 26 07:43:41 2009
New Revision: 198478
URL: http://svn.freebsd.org/changeset/base/198478

Log:
  - Initialize variable in order to avoid GCC warning and enable WARNS=6.
  
  PR:		bin/139970
  Submitted by:	Ulrich Spörlein <uqs -at- spoerlein.net>

Modified:
  head/sbin/geom/class/part/Makefile
  head/sbin/geom/class/part/geom_part.c

Modified: head/sbin/geom/class/part/Makefile
==============================================================================
--- head/sbin/geom/class/part/Makefile	Mon Oct 26 06:51:20 2009	(r198477)
+++ head/sbin/geom/class/part/Makefile	Mon Oct 26 07:43:41 2009	(r198478)
@@ -6,6 +6,4 @@ CLASS=	part
 
 LDADD=	-lutil
 
-WARNS?=	4
-
 .include <bsd.lib.mk>

Modified: head/sbin/geom/class/part/geom_part.c
==============================================================================
--- head/sbin/geom/class/part/geom_part.c	Mon Oct 26 06:51:20 2009	(r198477)
+++ head/sbin/geom/class/part/geom_part.c	Mon Oct 26 07:43:41 2009	(r198478)
@@ -192,6 +192,7 @@ find_provider(struct ggeom *gp, unsigned
 	unsigned long long sector, bestsector;
 
 	bestpp = NULL;
+	bestsector = 0;
 	LIST_FOREACH(pp, &gp->lg_provider, lg_provider) {
 		s = find_provcfg(pp, "start");
 		if (s == NULL) {



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