Module Name: src
Committed By: mrg
Date: Sat Jul 2 13:21:30 UTC 2011
Modified Files:
src/sys/dev/sbus: spif.c
Log Message:
avoid some uninitialised variable warnings from GCC 4.5. i'm pretty
sure they can't happen in practise, but i can see why GCC isn't sure.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/sbus/spif.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/sbus/spif.c
diff -u src/sys/dev/sbus/spif.c:1.26 src/sys/dev/sbus/spif.c:1.27
--- src/sys/dev/sbus/spif.c:1.26 Sun Apr 24 16:27:01 2011
+++ src/sys/dev/sbus/spif.c Sat Jul 2 13:21:30 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: spif.c,v 1.26 2011/04/24 16:27:01 rmind Exp $ */
+/* $NetBSD: spif.c,v 1.27 2011/07/02 13:21:30 mrg Exp $ */
/* $OpenBSD: spif.c,v 1.12 2003/10/03 16:44:51 miod Exp $ */
/*
@@ -41,7 +41,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spif.c,v 1.26 2011/04/24 16:27:01 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spif.c,v 1.27 2011/07/02 13:21:30 mrg Exp $");
#include "spif.h"
#if NSPIF > 0
@@ -539,7 +539,7 @@
SPIF_CARD(tp->t_dev));
struct stty_port *sp = &st->sc_port[SPIF_PORT(tp->t_dev)];
struct spif_softc *sc = sp->sp_sc;
- uint8_t rbprl, rbprh, tbprl, tbprh;
+ uint8_t rbprl = 0, rbprh = 0, tbprl = 0, tbprh = 0;
int s, opt;
if (t->c_ospeed &&