From patchwork Wed Jul 18 14:10:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 10121 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 E182A23E56 for ; Wed, 18 Jul 2012 14:10:41 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id B180AA180E3 for ; Wed, 18 Jul 2012 14:10:41 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id f1so1720098ggn.11 for ; Wed, 18 Jul 2012 07:10:41 -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=zQLz74nTtjci99zFd84nmRolxrLXFWu10uzprUkZYa4=; b=QbfLjKgLgd4mHtO7oxCrZgtdwTYXcX0JBRI69Q0S83DpfeHJsoXHOJ+o3/umRs1WyK KjUhPFt/qk7e6RpJb03Kwp7ze3bZfflJT+H3GZHiraB5IDUcMpYPlyQmvwwGY2s1tz0k QyQqOLhptOxbToanWoBLYHuk/c8+yE7pT5mnwjb3/Ki6o9pLXgpn59tOpIcHuaOQuONb GNQzb1DSG5QblgasXyjuIl5knhGmx9F+OSmFn5bdQ46VaNeZttP00hulS5FgU0QPbjZo yuzBBnfy6G5MxU4t9PvbAdRwm6TvfiDqRxhAhAaFAN025FNV3U7c7o4a7/PxFUKGKPO2 /3FA== Received: by 10.50.163.99 with SMTP id yh3mr2081176igb.53.1342620641151; Wed, 18 Jul 2012 07:10:41 -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 i7csp254ibw; Wed, 18 Jul 2012 07:10:38 -0700 (PDT) Received: by 10.204.156.11 with SMTP id u11mr1724020bkw.69.1342620637166; Wed, 18 Jul 2012 07:10:37 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id gi2si23979616bkc.105.2012.07.18.07.10.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jul 2012 07:10:37 -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-0003KC-E7; Wed, 18 Jul 2012 15:10:28 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Stefan Weil Subject: [PATCH 03/11] configure: Fix build with capabilities Date: Wed, 18 Jul 2012 15:10:20 +0100 Message-Id: <1342620628-12751-4-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: ALoCoQm3ajB3JjtHhGJdepxpVhJRXYNI2mVQ0Xrpt6gxg8S0eCcTo6TALlsMaqKpJzhx91GwPB7a 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. This patch fixes support for capabilities. 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 63156a7..feadbe7 100755 --- a/configure +++ b/configure @@ -2083,7 +2083,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(); return caps != NULL; } EOF if compile_prog "" "-lcap" ; then cap=yes