From patchwork Tue Jul 31 06:42:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Aneesh Kumar K.V" X-Patchwork-Id: 174164 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2F3C52C009B for ; Tue, 31 Jul 2012 16:43:21 +1000 (EST) Received: from localhost ([::1]:56722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sw6Ap-0008H9-AR for incoming@patchwork.ozlabs.org; Tue, 31 Jul 2012 02:43:19 -0400 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 d23relay03.au.ibm.com (202.81.31.245) by e23smtp02.au.ibm.com (202.81.31.208) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 31 Jul 2012 16:42:36 +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 Received: from skywalker.in.ibm.com (skywalker.in.ibm.com [9.124.35.165]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q6V6guqh013150; Tue, 31 Jul 2012 16:42:56 +1000 From: "Aneesh Kumar K.V" To: qemu-devel@nongnu.org Date: Tue, 31 Jul 2012 12:12:50 +0530 Message-Id: <1343716970-22955-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.10 MIME-Version: 1.0 x-cbid: 12073106-5490-0000-0000-000001E098F5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 202.81.31.144 Cc: aliguori@us.ibm.com, "Aneesh Kumar K.V" Subject: [Qemu-devel] [PATCH] configure: Fix configure error with --enable-virtfs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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