Module Name:    src
Committed By:   martin
Date:           Sat Sep 14 21:02:36 UTC 2013

Modified Files:
        src/sys/dev: midi.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/dev/midi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/midi.c
diff -u src/sys/dev/midi.c:1.78 src/sys/dev/midi.c:1.79
--- src/sys/dev/midi.c:1.78	Mon Apr  9 10:18:16 2012
+++ src/sys/dev/midi.c	Sat Sep 14 21:02:36 2013
@@ -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 @@ midiwrite(dev_t dev, struct uio *uio, in
 	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 @@ midiioctl(dev_t dev, u_long cmd, void *a
 	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 @@ midipoll(dev_t dev, int events, struct l
 	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 @@ filt_midiread(struct knote *kn, long hin
 	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 @@ filt_midiwrite(struct knote *kn, long hi
 	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);

Reply via email to