Skip to contentSkip to conversation

Dreamcast AICA sound - Get rid of annoying compiler warning

PATCH Applied Adrian McMenamin 2 participants 2 messages Oct 28, 2007 – Oct 29, 2007 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Dreamcast AICA sound - Get rid of annoying compiler warning

This patch supresses an annoying compiler warning that the variable err may be used uninitialised.

Signed-off by: Adrian McMenamin <[email protected]>

sound/sh/aica.c +1 -0
index 88dc840..8861d2f 100644
@@ -237,6 +237,7 @@ static int aica_dma_transfer(int channels, int buffer_size,
 	struct snd_card_aica *dreamcastcard;
 	struct snd_pcm_runtime *runtime;
 	unsigned long flags;
+	err = 0;
 	dreamcastcard = substream->pcm->private_data;
 	period_offset = dreamcastcard->clicks;
 	period_offset %= (AICA_PERIOD_NUMBER / channels);
Applied
#1 lore raw

At Sun, 28 Oct 2007 14:27:04 +0000,

Quoted 5 lines · Adrian McMenamin

This patch supresses an annoying compiler warning that the variable err may be used uninitialised.

Signed-off by: Adrian McMenamin <[email protected]>

Applied to ALSA tree now.

Thanks,

Takashi

Quoted 19 lines
sound/sh/aica.c +1 -0
index 88dc840..8861d2f 100644
@@ -237,6 +237,7 @@ static int aica_dma_transfer(int channels, int buffer_size,
 	struct snd_card_aica *dreamcastcard;
 	struct snd_pcm_runtime *runtime;
 	unsigned long flags;
+	err = 0;
 	dreamcastcard = substream->pcm->private_data;
 	period_offset = dreamcastcard->clicks;
 	period_offset %= (AICA_PERIOD_NUMBER / channels);

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel