summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-07-02 21:35:43 +0200
committerTakashi Iwai <tiwai@suse.de>2020-07-07 12:02:24 +0200
commit6a4f2b6947d0f340a40359a906d07642825ac14e (patch)
treed38a36c3f7ed108068d2fc2a81a55c8c96120fdc /sound/isa
parentALSA: isa/gus: remove -Wmissing-prototypes warnings (diff)
downloadlinux-6a4f2b6947d0f340a40359a906d07642825ac14e.tar.xz
linux-6a4f2b6947d0f340a40359a906d07642825ac14e.zip
ALSA: isa/gus: remove 'set but not used' warning
Fix W=1 warning by noting variable as __always_unused. sound/isa/gus/gus_uart.c: In function ‘snd_gf1_interrupt_midi_in’: sound/isa/gus/gus_uart.c:16:22: warning: variable ‘data’ set but not used [-Wunused-but-set-variable] 16 | unsigned char stat, data, byte; Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200702193604.169059-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/gus/gus_uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/isa/gus/gus_uart.c b/sound/isa/gus/gus_uart.c
index 7586619770b3..4fb4ed79e262 100644
--- a/sound/isa/gus/gus_uart.c
+++ b/sound/isa/gus/gus_uart.c
@@ -13,7 +13,8 @@
static void snd_gf1_interrupt_midi_in(struct snd_gus_card * gus)
{
int count;
- unsigned char stat, data, byte;
+ unsigned char stat, byte;
+ __always_unused unsigned char data;
unsigned long flags;
count = 10;