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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to