From 546629073d4e40947a0b169a8d759d9bb12fb732 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 6 Apr 2022 16:45:27 -0700 Subject: [PATCH] cmi: Mark rsp as unused. If the DEB macro is manually enabled to enable tracing then this variable is used. This doesn't use __diagused since it is dependent on a non-standard debugging macro. --- sys/dev/sound/pci/cmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sound/pci/cmi.c b/sys/dev/sound/pci/cmi.c index 30868de323b3..bc467aed1ffa 100644 --- a/sys/dev/sound/pci/cmi.c +++ b/sys/dev/sound/pci/cmi.c @@ -421,7 +421,7 @@ cmichan_setspeed(kobj_t obj, void *data, u_int32_t speed) { struct sc_chinfo *ch = data; struct sc_info *sc = ch->parent; - u_int32_t r, rsp; + u_int32_t r, rsp __unused; r = cmpci_rate_to_regvalue(speed); snd_mtxlock(sc->lock);