svn commit: r209434 - stable/8/sbin/geom/class/part
Andrey V. Elsukov
ae at FreeBSD.org
Tue Jun 22 18:24:27 UTC 2010
Author: ae
Date: Tue Jun 22 18:24:26 2010
New Revision: 209434
URL: http://svn.freebsd.org/changeset/base/209434
Log:
MFC r198478 (by lulf):
- Initialize variable in order to avoid GCC warning and enable WARNS=6.
PR: bin/139970
Submitted by: Ulrich Spörlein <uqs -at- spoerlein.net>
Approved by: kib (mentor)
Modified:
stable/8/sbin/geom/class/part/Makefile
stable/8/sbin/geom/class/part/geom_part.c
Directory Properties:
stable/8/sbin/geom/ (props changed)
stable/8/sbin/geom/class/part/ (props changed)
stable/8/sbin/geom/class/stripe/ (props changed)
Modified: stable/8/sbin/geom/class/part/Makefile
==============================================================================
--- stable/8/sbin/geom/class/part/Makefile Tue Jun 22 17:45:21 2010 (r209433)
+++ stable/8/sbin/geom/class/part/Makefile Tue Jun 22 18:24:26 2010 (r209434)
@@ -6,6 +6,4 @@ CLASS= part
LDADD= -lutil
-WARNS?= 4
-
.include <bsd.lib.mk>
Modified: stable/8/sbin/geom/class/part/geom_part.c
==============================================================================
--- stable/8/sbin/geom/class/part/geom_part.c Tue Jun 22 17:45:21 2010 (r209433)
+++ stable/8/sbin/geom/class/part/geom_part.c Tue Jun 22 18:24:26 2010 (r209434)
@@ -206,6 +206,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-stable
mailing list