From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw99J-0000ID-Ed for qemu-devel@nongnu.org; Tue, 31 Jul 2012 05:53:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sw99D-0001sY-JY for qemu-devel@nongnu.org; Tue, 31 Jul 2012 05:53:57 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:62452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw99D-0001sI-DS for qemu-devel@nongnu.org; Tue, 31 Jul 2012 05:53:51 -0400 From: Paul Brook Date: Tue, 31 Jul 2012 10:53:35 +0100 Message-ID: <1343728415-14714-1-git-send-email-paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH] Fix ALSA configure check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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" ;; -- 1.7.10.4