svn commit: r198478 - head/sbin/geom/class/part
Ulf Lilleengen
lulf at FreeBSD.org
Mon Oct 26 07:43:42 UTC 2009
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) {
More information about the svn-src-all
mailing list