From patchwork Wed Jul 18 14:10:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 10119 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A566923E56 for ; Wed, 18 Jul 2012 14:10:40 +0000 (UTC) Received: from mail-qa0-f52.google.com (mail-qa0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id 78452A180BC for ; Wed, 18 Jul 2012 14:10:40 +0000 (UTC) Received: by qabj34 with SMTP id j34so1027024qab.11 for ; Wed, 18 Jul 2012 07:10:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=GPQVO59YHhBpqkOkbylUlS78T5tPqrRlt3hhgyhXbHA=; b=J8cRcZK8W0/COHxAl51ziB8FN3oi2DAbQWbSz2dONjmnJIXp9tTs8K+k/5tOkQPv8J FFF97DFk0+uT4UyPi+OPwMwWGEq4Iqib6TkF3oPE9bSD2//V8YWYm9adkCGY+t/vHMzc R99RuB7vQ1cuVv0/NnqsEDpSuM4kmHEc7ZQooKsFk62K1ndfiKUeg0vv01vWAjTwxm1c faHJ6oksD6kiYiQpseg4FQw08tHDlBAhsnTe5mKoe193fwUkAeEhcdLEv3X78iTzplY7 caY+gNV2z4FJn6/CIzawTovVM5KvBgh2V9vkHnRH+9fjFMlKTzgzu3wPwUs4fPpSIik4 MWaQ== Received: by 10.50.160.198 with SMTP id xm6mr2215525igb.0.1342620639567; Wed, 18 Jul 2012 07:10:39 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.153.7 with SMTP id i7csp243ibw; Wed, 18 Jul 2012 07:10:35 -0700 (PDT) Received: by 10.180.97.106 with SMTP id dz10mr7041141wib.21.1342620634495; Wed, 18 Jul 2012 07:10:34 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id d6si38186921wiv.2.2012.07.18.07.10.30 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jul 2012 07:10:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1SrUxQ-0003KA-CR; Wed, 18 Jul 2012 15:10:28 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Stefan Weil Subject: [PATCH 02/11] configure: Fix build with ALSA audio driver Date: Wed, 18 Jul 2012 15:10:19 +0100 Message-Id: <1342620628-12751-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1342620628-12751-1-git-send-email-peter.maydell@linaro.org> References: <1342620628-12751-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQk3AU9y50ovfcA0vX0NUNaN84cOJvnQdViwk183oJsw5XWBRVO32dk4DuXJDxl0pW2OQMjc From: Stefan Weil 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 Reviewed-by: Peter Maydell --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 383fa3d..63156a7 100755 --- a/configure +++ b/configure @@ -1889,7 +1889,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" ;;