aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-07-30 15:09:11 +0100
committerPeter Maydell <peter.maydell@linaro.org>2012-07-30 15:09:40 +0100
commit22cd18a7949c87c805cec5f098f43bd2a2d39703 (patch)
tree72fa1e8da14214c5b183a0413dbb0e379fdc33e3
parent0534fb1be86e7a9654d72256c6e77816d76ee31f (diff)
downloadqemu-arm-22cd18a7949c87c805cec5f098f43bd2a2d39703.tar.gz
configure: Fix build with ALSA audio driver
Since commit 417c9d72d48275d19c60861896efd4962d21aca2, all configure tests normally run with -Werror. Some of these tests now fail because they raised a compiler warning. Here a build breakage for ALSA (configure --audio-drv-list=alsa) is fixed. Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 136d9ecf1d..0a2226bb7e 100755
--- a/configure
+++ b/configure
@@ -1891,7 +1891,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);"
+ "return snd_pcm_close((snd_pcm_t *)0);"
libs_softmmu="-lasound $libs_softmmu"
;;