* [Qemu-devel] [PATCH] Fix ALSA configure check
@ 2012-07-31 9:53 Paul Brook
2012-07-31 9:58 ` malc
0 siblings, 1 reply; 2+ messages in thread
From: Paul Brook @ 2012-07-31 9:53 UTC (permalink / raw)
To: qemu-devel; +Cc: Paul Brook
Recent gcc notice that the ASLA configure check uses an uninitialized
variable, causing spurious failures. Adjust the testcase to avoid this.
Signed-off-by: Paul Brook <paul@codesourcery.com>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index c65b5f6..9152798 100755
--- a/configure
+++ b/configure
@@ -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"
;;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-31 9:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 9:53 [Qemu-devel] [PATCH] Fix ALSA configure check Paul Brook
2012-07-31 9:58 ` malc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).