All of lore.kernel.org
 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; 20+ 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] 20+ messages in thread

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

Thread overview: 20+ 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   ` [Qemu-trivial] " Stefan Weil
2012-07-17 18:32     ` Stefan Weil
2012-07-17 18:46     ` [Qemu-trivial] " Peter Maydell
2012-07-17 18:46       ` Peter Maydell
2012-07-17 19:24       ` [Qemu-trivial] " Stefan Weil
2012-07-17 19:24         ` Stefan Weil
2012-07-17 19:28         ` [Qemu-trivial] " Peter Maydell
2012-07-17 19:28           ` Peter Maydell
2012-07-17 19:42           ` [Qemu-trivial] " Stefan Weil
2012-07-17 19:42             ` Stefan Weil
2012-07-21  9:37           ` [Qemu-trivial] " Stefan Hajnoczi
2012-07-21  9:37             ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
2012-07-23 17:40           ` [Qemu-trivial] [Qemu-devel] " Blue Swirl
2012-07-23 17:40             ` Blue Swirl
2012-07-23 17:45             ` [Qemu-trivial] " Peter Maydell
2012-07-23 17:45               ` Peter Maydell
2012-07-23 19:32               ` [Qemu-trivial] " Peter Maydell
2012-07-23 19:32                 ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.