Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/dev/pci Apply patch, requested by martin in ticket #1...



details:   https://anonhg.NetBSD.org/src/rev/51bb5e2fbe82
branches:  netbsd-6
changeset: 777113:51bb5e2fbe82
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Sep 24 13:14:57 2016 +0000

description:
Apply patch, requested by martin in ticket #1407:
        sys/dev/pci/if_wm.c     patch
fix evbppc build, where the older gcc wrongly warns about uninitialized
variable.

diffstat:

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

diffs (27 lines):

diff -r f2a07bcc1416 -r 51bb5e2fbe82 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Sat Sep 24 13:10:52 2016 +0000
+++ b/sys/dev/pci/if_wm.c       Sat Sep 24 13:14:57 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.227.2.19 2016/05/06 18:43:34 snj Exp $     */
+/*     $NetBSD: if_wm.c,v 1.227.2.20 2016/09/24 13:14:57 bouyer Exp $  */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -84,7 +84,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.227.2.19 2016/05/06 18:43:34 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.227.2.20 2016/09/24 13:14:57 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -6003,7 +6003,7 @@
 static void
 wm_nvm_version(struct wm_softc *sc)
 {
-       uint16_t major, minor, build, patch;
+       uint16_t major, minor, patch, build = 0; /* XXX old gcc */
        uint16_t uid0, uid1;
        uint16_t nvm_data;
        uint16_t off;



Home | Main Index | Thread Index | Old Index