From patchwork Tue Jul 31 09:53:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix ALSA configure check Date: Mon, 30 Jul 2012 23:53:35 -0000 From: Paul Brook X-Patchwork-Id: 174189 Message-Id: <1343728415-14714-1-git-send-email-paul@codesourcery.com> To: 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 --- 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" ;;