qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: fix ALSA configure test
@ 2012-07-17 17:34 Igor Mitsyanko
  2012-07-17 18:03 ` Igor Mitsyanko
  0 siblings, 1 reply; 11+ messages in thread
From: Igor Mitsyanko @ 2012-07-17 17:34 UTC (permalink / raw)
  To: qemu-devel
  Cc: Igor Mitsyanko, e.voevodin, agraf, kyungmin.park, kraxel,
	afaerber

After commit 417c9d72d48275d19c60861896efd4962d21aca2 all configure tests are
executed with -Werror flag. Current ALSA configure test program invokes a warning:

warning: ‘handle’ is used uninitialized in this function [-Wuninitialized]

which results in error with -Werror flag and, consequently, in alsa test failing.
This means that QEMU won't configure with "--audio-drv-list=alsa".

Initialize "handle" variable to fix compilation warning.

Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 0a3896e..cf4669f 100755
--- a/configure
+++ b/configure
@@ -1888,7 +1888,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 = 0; return snd_pcm_close(handle);"
     libs_softmmu="-lasound $libs_softmmu"
     ;;
 
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-07-23 19:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-17 17:34 [Qemu-devel] [PATCH] configure: fix ALSA configure test Igor Mitsyanko
2012-07-17 18:03 ` Igor Mitsyanko
2012-07-17 18:32   ` Stefan Weil
2012-07-17 18:46     ` Peter Maydell
2012-07-17 19:24       ` Stefan Weil
2012-07-17 19:28         ` Peter Maydell
2012-07-17 19:42           ` Stefan Weil
2012-07-21  9:37           ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
2012-07-23 17:40           ` [Qemu-devel] " Blue Swirl
2012-07-23 17:45             ` Peter Maydell
2012-07-23 19:32               ` Peter Maydell

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).