Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sbus avoid some uninitialised variable warnings from...
details: https://anonhg.NetBSD.org/src/rev/3b9ad2dd25d4
branches: trunk
changeset: 766803:3b9ad2dd25d4
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Jul 02 13:21:30 2011 +0000
description:
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.
diffstat:
sys/dev/sbus/spif.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dd2e78a1eefd -r 3b9ad2dd25d4 sys/dev/sbus/spif.c
--- a/sys/dev/sbus/spif.c Sat Jul 02 13:18:39 2011 +0000
+++ b/sys/dev/sbus/spif.c Sat Jul 02 13:21:30 2011 +0000
@@ -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 &&
Home |
Main Index |
Thread Index |
Old Index