Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix bogus GCC uninitialized variable warning.



details:   https://anonhg.NetBSD.org/src/rev/d73994719554
branches:  trunk
changeset: 554542:d73994719554
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Oct 29 18:01:20 2003 +0000

description:
Fix bogus GCC uninitialized variable warning.

diffstat:

 sys/dev/ic/dp83932.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r cde4e3525298 -r d73994719554 sys/dev/ic/dp83932.c
--- a/sys/dev/ic/dp83932.c      Wed Oct 29 17:51:33 2003 +0000
+++ b/sys/dev/ic/dp83932.c      Wed Oct 29 18:01:20 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dp83932.c,v 1.8 2003/01/18 13:53:29 tsutsui Exp $      */
+/*     $NetBSD: dp83932.c,v 1.9 2003/10/29 18:01:20 tsutsui Exp $      */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.8 2003/01/18 13:53:29 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.9 2003/10/29 18:01:20 tsutsui Exp $");
 
 #include "bpfilter.h"
 
@@ -283,7 +283,8 @@
        struct sonic_tda32 *tda32;
        struct sonic_descsoft *ds;
        bus_dmamap_t dmamap;
-       int error, olasttx, nexttx, opending, seg, totlen, olseg;
+       int error, olasttx, nexttx, opending, totlen, olseg;
+       int seg = 0;    /* XXX: gcc */
 
        if ((ifp->if_flags & (IFF_RUNNING|IFF_OACTIVE)) != IFF_RUNNING)
                return;



Home | Main Index | Thread Index | Old Index