Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Quell a few "unused variable" warnings (where the va...



details:   https://anonhg.NetBSD.org/src/rev/81eddd0a5726
branches:  trunk
changeset: 790002:81eddd0a5726
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Sep 14 21:02:36 2013 +0000

description:
Quell a few "unused variable" warnings (where the variables are generated
by macros)

diffstat:

 sys/dev/midi.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (58 lines):

diff -r 7b8abd610e0c -r 81eddd0a5726 sys/dev/midi.c
--- a/sys/dev/midi.c    Sat Sep 14 20:53:48 2013 +0000
+++ b/sys/dev/midi.c    Sat Sep 14 21:02:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: midi.c,v 1.78 2012/04/09 10:18:16 plunky Exp $ */
+/*     $NetBSD: midi.c,v 1.79 2013/09/14 21:02:36 martin Exp $ */
 
 /*
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.78 2012/04/09 10:18:16 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.79 2013/09/14 21:02:36 martin Exp $");
 
 #include "midi.h"
 #include "sequencer.h"
@@ -1401,6 +1401,7 @@
        size_t xfrcount;
        int pollout = 0;
 
+       (void)buf_end; (void)idx_end;
        sc = device_lookup_private(&midi_cd, MIDIUNIT(dev));
 
        DPRINTFN(6,("midiwrite: %p, unit=%d, count=%lu\n", sc, (int)minor(dev),
@@ -1536,6 +1537,7 @@
        int error;
        MIDI_BUF_DECLARE(buf);
 
+       (void)buf_end;
        sc = device_lookup_private(&midi_cd, MIDIUNIT(dev));;
        if (sc->dying)
                return EIO;
@@ -1620,6 +1622,7 @@
        MIDI_BUF_DECLARE(idx);
        MIDI_BUF_DECLARE(buf);
 
+       (void)buf_end; (void)idx_end;
        sc = device_lookup_private(&midi_cd, MIDIUNIT(dev));
        revents = 0;
 
@@ -1666,6 +1669,7 @@
        struct midi_softc *sc = kn->kn_hook;
        MIDI_BUF_DECLARE(buf);
 
+       (void)buf_end;
        if (hint != NOTE_SUBMIT)
                mutex_enter(sc->lock);
        MIDI_BUF_CONSUMER_INIT(&sc->inbuf,buf);
@@ -1695,6 +1699,7 @@
        MIDI_BUF_DECLARE(idx);
        MIDI_BUF_DECLARE(buf);
 
+       (void)idx_end; (void)buf_end;
        if (hint != NOTE_SUBMIT)
                mutex_enter(sc->lock);
        MIDI_BUF_PRODUCER_INIT(&sc->outbuf,idx);



Home | Main Index | Thread Index | Old Index