Module Name: src Committed By: macallan Date: Mon Apr 23 11:51:56 UTC 2012
Modified Files: src/sys/dev/pci: voodoofb.c Log Message: initialize a variable before using it found by uebayasi@ now why did gcc warn him on x86 but not me on macppc? To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/dev/pci/voodoofb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/voodoofb.c diff -u src/sys/dev/pci/voodoofb.c:1.40 src/sys/dev/pci/voodoofb.c:1.41 --- src/sys/dev/pci/voodoofb.c:1.40 Thu Mar 15 03:12:51 2012 +++ src/sys/dev/pci/voodoofb.c Mon Apr 23 11:51:56 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: voodoofb.c,v 1.40 2012/03/15 03:12:51 macallan Exp $ */ +/* $NetBSD: voodoofb.c,v 1.41 2012/04/23 11:51:56 macallan Exp $ */ /* * Copyright (c) 2005, 2006, 2012 Michael Lorenz @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: voodoofb.c,v 1.40 2012/03/15 03:12:51 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: voodoofb.c,v 1.41 2012/04/23 11:51:56 macallan Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1726,7 +1726,7 @@ voodoofb_setup_i2c(struct voodoofb_softc * best one we can support */ if (sc->sc_videomode == NULL) { - int n; + int n = 0; struct videomode *m = sc->sc_edid_info.edid_modes;