Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci fix build failure by gcc 4.8.5



details:   https://anonhg.NetBSD.org/src/rev/cfd84d88a46a
branches:  trunk
changeset: 345324:cfd84d88a46a
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Thu May 19 08:35:03 2016 +0000

description:
fix build failure by gcc 4.8.5

diffstat:

 sys/dev/pci/if_wm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 672cce00e7fb -r cfd84d88a46a sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Thu May 19 08:27:57 2016 +0000
+++ b/sys/dev/pci/if_wm.c       Thu May 19 08:35:03 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.405 2016/05/19 08:27:57 knakahara Exp $    */
+/*     $NetBSD: if_wm.c,v 1.406 2016/05/19 08:35:03 knakahara Exp $    */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.405 2016/05/19 08:27:57 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.406 2016/05/19 08:35:03 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -5880,7 +5880,7 @@
 static int
 wm_init_txrx_queues(struct wm_softc *sc)
 {
-       int i, error;
+       int i, error = 0;
 
        DPRINTF(WM_DEBUG_INIT, ("%s: %s called\n",
                device_xname(sc->sc_dev), __func__));



Home | Main Index | Thread Index | Old Index