summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2009-10-26 07:43:41 +0000
committerlulf <lulf@FreeBSD.org>2009-10-26 07:43:41 +0000
commit18f719f38d9093b08c7bb43eb656732a965182a9 (patch)
tree876ad3bbe36a6d2181d25115ce058dfc7be47ee7 /sbin/geom
parentdbf6ce4802c38d4d6f8bc8686bb95637661ed8e2 (diff)
downloadFreeBSD-src-18f719f38d9093b08c7bb43eb656732a965182a9.zip
FreeBSD-src-18f719f38d9093b08c7bb43eb656732a965182a9.tar.gz
- Initialize variable in order to avoid GCC warning and enable WARNS=6.
PR: bin/139970 Submitted by: Ulrich Spörlein <uqs -at- spoerlein.net>
Diffstat (limited to 'sbin/geom')
-rw-r--r--sbin/geom/class/part/Makefile2
-rw-r--r--sbin/geom/class/part/geom_part.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/sbin/geom/class/part/Makefile b/sbin/geom/class/part/Makefile
index 3622716..8e7d0ff 100644
--- a/sbin/geom/class/part/Makefile
+++ b/sbin/geom/class/part/Makefile
@@ -6,6 +6,4 @@ CLASS= part
LDADD= -lutil
-WARNS?= 4
-
.include <bsd.lib.mk>
diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c
index db3c5e9..e2a045e 100644
--- a/sbin/geom/class/part/geom_part.c
+++ b/sbin/geom/class/part/geom_part.c
@@ -192,6 +192,7 @@ find_provider(struct ggeom *gp, unsigned long long minsector)
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) {
OpenPOWER on IntegriCloud