Skip to contentSkip to conversation

Fix ALSA configure check

PATCH In review Paul Brook 2 participants 2 messages Jul 31, 2012

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

PATCH 1/1 Fix ALSA configure check

Recent gcc notice that the ASLA configure check uses an uninitialized variable, causing spurious failures. Adjust the testcase to avoid this.

---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index c65b5f6..9152798 100755
@@ -1890,7 +1890,7 @@ for drv in $audio_drv_list; do
     case $drv in
     alsa)
     audio_drv_probe $drv alsa/asoundlib.h -lasound \
-        "snd_pcm_t **handle; return snd_pcm_close(*handle);"
+        "snd_pcm_t *handle = NULL; return snd_pcm_close(handle);"
     libs_softmmu="-lasound $libs_softmmu"
     ;;
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 2 lines · Paul Brook

Recent gcc notice that the ASLA configure check uses an uninitialized variable, causing spurious failures. Adjust the testcase to avoid this.

http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg02704.html

Quoted 20 lines
---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index c65b5f6..9152798 100755
@@ -1890,7 +1890,7 @@ for drv in $audio_drv_list; do
     case $drv in
     alsa)
     audio_drv_probe $drv alsa/asoundlib.h -lasound \
-        "snd_pcm_t **handle; return snd_pcm_close(*handle);"
+        "snd_pcm_t *handle = NULL; return snd_pcm_close(handle);"
     libs_softmmu="-lasound $libs_softmmu"
     ;;
 
Signature · 1 line
mailto:[email protected]