From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw6Af-0008Gd-7g for qemu-devel@nongnu.org; Tue, 31 Jul 2012 02:43:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sw6Ab-0005HW-9j for qemu-devel@nongnu.org; Tue, 31 Jul 2012 02:43:09 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:59094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw6Aa-0005HS-NY for qemu-devel@nongnu.org; Tue, 31 Jul 2012 02:43:05 -0400 Received: from /spool/local by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 31 Jul 2012 16:42:39 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6V6gvlM14614682 for ; Tue, 31 Jul 2012 16:42:58 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6V6gvvt013189 for ; Tue, 31 Jul 2012 16:42:57 +1000 From: "Aneesh Kumar K.V" Date: Tue, 31 Jul 2012 12:12:50 +0530 Message-Id: <1343716970-22955-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] configure: Fix configure error with --enable-virtfs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, "Aneesh Kumar K.V" From: "Aneesh Kumar K.V" This fix the below error on ubuntu 12.04 a.c: In function ‘main’: a.c:3:24: error: variable ‘caps’ set but not used [-Werror=unused-but-set-variable] a.c:3:1: error: control reaches end of non-void function [-Werror=return-type] Signed-off-by: Aneesh Kumar K.V --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index c65b5f6..749bd8b 100755 --- a/configure +++ b/configure @@ -2084,7 +2084,11 @@ if test "$cap" != "no" ; then cat > $TMPC < #include -int main(void) { cap_t caps; caps = cap_init(); } +int main(void) +{ + cap_init(); + return 0; +} EOF if compile_prog "" "-lcap" ; then cap=yes -- 1.7.10