From patchwork Mon Jul 30 11:41:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Kivity X-Patchwork-Id: 174000 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 5ACF12C0093 for ; Mon, 30 Jul 2012 21:42:11 +1000 (EST) Received: from localhost ([::1]:33823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvoMS-0002jc-TR for incoming@patchwork.ozlabs.org; Mon, 30 Jul 2012 07:42:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvoMD-0002jO-UD for qemu-devel@nongnu.org; Mon, 30 Jul 2012 07:42:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvoM4-000403-Gi for qemu-devel@nongnu.org; Mon, 30 Jul 2012 07:41:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvoM4-0003zs-8U for qemu-devel@nongnu.org; Mon, 30 Jul 2012 07:41:44 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6UBfc9g027865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 30 Jul 2012 07:41:41 -0400 Received: from s01.tlv.redhat.com (s01.tlv.redhat.com [10.35.255.8]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6UBfaW4024718; Mon, 30 Jul 2012 07:41:36 -0400 From: Avi Kivity To: Anthony Liguori , qemu-devel@nongnu.org Date: Mon, 30 Jul 2012 14:41:33 +0300 Message-Id: <1343648493-27905-1-git-send-email-avi@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] configure: fix libcap detection 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 - avoid assigned-but-not-used error - avoid missing return error Signed-off-by: Avi Kivity Acked-by: Aneesh Kumar K.V --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 7767aca..5fb449d 100755 --- a/configure +++ b/configure @@ -2099,7 +2099,7 @@ if test "$cap" != "no" ; then cat > $TMPC < #include -int main(void) { cap_t caps; caps = cap_init(); } +int main(void) { cap_t caps; caps = cap_init(); (void)caps; return 0; } EOF if compile_prog "" "-lcap" ; then cap=yes