Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/pci avoid an uninitialised variable warning GC...
details: https://anonhg.NetBSD.org/src/rev/09aff2d1edcd
branches: trunk
changeset: 766959:09aff2d1edcd
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Jul 05 07:08:17 2011 +0000
description:
avoid an uninitialised variable warning GCC 4.5 -O3 picks up.
diffstat:
sys/arch/i386/pci/viapcib.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d5408afd9e69 -r 09aff2d1edcd sys/arch/i386/pci/viapcib.c
--- a/sys/arch/i386/pci/viapcib.c Tue Jul 05 05:19:02 2011 +0000
+++ b/sys/arch/i386/pci/viapcib.c Tue Jul 05 07:08:17 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: viapcib.c,v 1.13 2011/06/08 22:43:10 rmind Exp $ */
+/* $NetBSD: viapcib.c,v 1.14 2011/07/05 07:08:17 mrg Exp $ */
/* $FreeBSD: src/sys/pci/viapm.c,v 1.10 2005/05/29 04:42:29 nyan Exp $ */
/*-
@@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: viapcib.c,v 1.13 2011/06/08 22:43:10 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viapcib.c,v 1.14 2011/07/05 07:08:17 mrg Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -232,7 +232,7 @@
viapcib_wait(struct viapcib_softc *sc)
{
int rv, timeout;
- uint8_t val;
+ uint8_t val = 0;
timeout = VIAPCIB_SMBUS_TIMEOUT;
rv = 0;
Home |
Main Index |
Thread Index |
Old Index