Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add __diagused.



details:   https://anonhg.NetBSD.org/src/rev/c16958b61c05
branches:  trunk
changeset: 794408:c16958b61c05
user:      hannken <hannken%NetBSD.org@localhost>
date:      Thu Mar 13 16:33:52 2014 +0000

description:
Add __diagused.

diffstat:

 sys/dev/pci/if_bnx.c |  6 +++---
 sys/dev/pci/twa.c    |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r ce1a63c7d94e -r c16958b61c05 sys/dev/pci/if_bnx.c
--- a/sys/dev/pci/if_bnx.c      Thu Mar 13 16:19:24 2014 +0000
+++ b/sys/dev/pci/if_bnx.c      Thu Mar 13 16:33:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bnx.c,v 1.49 2013/09/13 20:54:14 martin Exp $       */
+/*     $NetBSD: if_bnx.c,v 1.50 2014/03/13 16:33:52 hannken Exp $      */
 /*     $OpenBSD: if_bnx.c,v 1.85 2009/11/09 14:32:41 dlg Exp $ */
 
 /*-
@@ -35,7 +35,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.49 2013/09/13 20:54:14 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.50 2014/03/13 16:33:52 hannken Exp $");
 
 /*
  * The following controllers are supported by this driver:
@@ -4334,7 +4334,7 @@
         */
        while (sw_cons != hw_cons) {
                struct mbuf *m;
-               struct rx_bd *rxbd;
+               struct rx_bd *rxbd __diagused;
                unsigned int len;
                u_int32_t status;
 
diff -r ce1a63c7d94e -r c16958b61c05 sys/dev/pci/twa.c
--- a/sys/dev/pci/twa.c Thu Mar 13 16:19:24 2014 +0000
+++ b/sys/dev/pci/twa.c Thu Mar 13 16:33:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: twa.c,v 1.46 2014/02/25 18:30:10 pooka Exp $ */
+/*     $NetBSD: twa.c,v 1.47 2014/03/13 16:34:13 hannken Exp $ */
 /*     $wasabi: twa.c,v 1.27 2006/07/28 18:17:21 wrstuden Exp $        */
 
 /*-
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.46 2014/02/25 18:30:10 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.47 2014/03/13 16:34:13 hannken Exp $");
 
 //#define TWA_DEBUG
 
@@ -1865,7 +1865,7 @@
 static int
 twa_intr(void *arg)
 {
-       int     caught, s, rv;
+       int     caught, s, rv __diagused;
        struct twa_softc *sc;
        uint32_t        status_reg;
        sc = (struct twa_softc *)arg;
@@ -2756,7 +2756,7 @@
 static uint16_t
 twa_enqueue_aen(struct twa_softc *sc, struct twa_command_header *cmd_hdr)
 {
-       int                     rv, s;
+       int                     rv __diagused, s;
        struct tw_cl_event_packet *event;
        uint16_t                aen_code;
        unsigned long           sync_time;



Home | Main Index | Thread Index | Old Index