Hi
This patch fixes to warnings in alsa-sources. First is an unused variable. Second is that gcc is not able to detect that status is _always_ initialized before use, it fixes the warning and the code gives the same results (I only put the value 0 before it is overwritten). If you have any questions/comments, please told me. Later, Juan. diff -urN --exclude-from=/home/mitica/quintela/config/misc/dontdiff alsa-driver-0.5.12/lowlevel/isa/cs4231.c alsa-driver-0.5.12-hack/lowlevel/isa/cs4231.c --- alsa-driver-0.5.12/lowlevel/isa/cs4231.c Mon Oct 22 15:33:44 2001 +++ alsa-driver-0.5.12-hack/lowlevel/isa/cs4231.c Thu Nov 8 15:41:22 2001 @@ -1314,7 +1314,6 @@ { int reg; unsigned long flags; - int timeout; snd_cs4231_mce_up(codec); spin_lock_irqsave(&codec->reg_lock, flags); diff -urN --exclude-from=/home/mitica/quintela/config/misc/dontdiff alsa-driver-0.5.12/lowlevel/sb/sb16_csp.c alsa-driver-0.5.12-hack/lowlevel/sb/sb16_csp.c --- alsa-driver-0.5.12/lowlevel/sb/sb16_csp.c Thu Nov 8 19:37:58 2001 +++ alsa-driver-0.5.12-hack/lowlevel/sb/sb16_csp.c Thu Nov 8 19:01:42 2001 @@ -664,6 +664,7 @@ if (load_flags & SND_SB_CSP_LOAD_INITBLOCK) { /* some codecs (FastSpeech) take some time to initialize */ + status = 0; /* to make gcc happy */ for (i = 10; i; i--) { snd_sb16dsp_command(p->codec, 0x03); status = snd_sb16dsp_get_byte(p->codec); -- In theory, practice and theory are the same, but in practice they are different -- Larry McVoy _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel