Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci sprinkle __diagused so this compiles without DIA...



details:   https://anonhg.NetBSD.org/src/rev/e86f0fe2d67e
branches:  trunk
changeset: 1012406:e86f0fe2d67e
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Jul 29 13:01:19 2020 +0000

description:
sprinkle __diagused so this compiles without DIAGNOSTIC

diffstat:

 sys/dev/pci/xmm7360.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r cb83c567dde9 -r e86f0fe2d67e sys/dev/pci/xmm7360.c
--- a/sys/dev/pci/xmm7360.c     Wed Jul 29 13:00:26 2020 +0000
+++ b/sys/dev/pci/xmm7360.c     Wed Jul 29 13:01:19 2020 +0000
@@ -74,7 +74,7 @@
 #include "opt_gateway.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xmm7360.c,v 1.4 2020/07/29 13:00:26 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xmm7360.c,v 1.5 2020/07/29 13:01:19 jdolecek Exp $");
 #endif
 
 #include <sys/param.h>
@@ -692,7 +692,7 @@
 static void xmm7360_td_ring_activate(struct xmm_dev *xmm, u8 ring_id)
 {
        struct td_ring *ring = &xmm->td_ring[ring_id];
-       int ret;
+       int ret __diagused;
 
        xmm->cp->s_rptr[ring_id] = xmm->cp->s_wptr[ring_id] = 0;
        ring->last_handled = 0;
@@ -2643,9 +2643,9 @@
 static int
 wwancparam(struct tty *tp, struct termios *t)
 {
-       struct wwanc_softc *sc = (struct wwanc_softc *)tp->t_sc;
+       struct wwanc_softc *sc __diagused = (struct wwanc_softc *)tp->t_sc;
        dev_t dev = tp->t_dev;
-       int func = DEVFUNC(dev);
+       int func __diagused = DEVFUNC(dev);
 
        KASSERT(DEV_IS_TTY(dev));
        KASSERT(tp == sc->sc_tty[func]);



Home | Main Index | Thread Index | Old Index