From patchwork Thu Aug 2 17:30:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 10471 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 180B124039 for ; Thu, 2 Aug 2012 17:30:38 +0000 (UTC) Received: from mail-qa0-f45.google.com (mail-qa0-f45.google.com [209.85.216.45]) by fiordland.canonical.com (Postfix) with ESMTP id DFBA1A182B4 for ; Thu, 2 Aug 2012 17:30:37 +0000 (UTC) Received: by qaeb19 with SMTP id b19so3802650qae.11 for ; Thu, 02 Aug 2012 10:30:37 -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=8er5BVFjbPxLZN7gx3YJhYXZ9AtqRvhph3ddN7JzpCQ=; b=hXEnoaYKh4VljsC/hrN7rddHYO4Md9cy8RTYLwLy4AP8/QZstGKxNJe9L161KFU5pZ qLyLy9p7vjziGOA/xFkGcaZViJewHJJl6AR2LUjPNFqVqFUntRWyUbsFGIvfLwAbp4qj WWMQ1cL+/5Ch/5lh2tAFAb5BpK13MMj28IH0W1khqK0tjGlIvV9R5GLg1lvTBr6BAJVq Mmb4zBC9T6VBHNiv46un1bMR7nycMbBZqzCIkYHoZnwPf3uLM2y9gPgnGjntV+UIo9XL VdDfFOYevXbnOVOfhuRVqH02ZnrJZ07BDGi3u8iHv6M0dZ4cL5zUFPvWA25QDMyy0Pvj jOBg== Received: by 10.50.94.166 with SMTP id dd6mr5086112igb.11.1343928637010; Thu, 02 Aug 2012 10:30:37 -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.50.87.40 with SMTP id u8csp270751igz; Thu, 2 Aug 2012 10:30:35 -0700 (PDT) Received: by 10.14.194.198 with SMTP id m46mr20153101een.13.1343928634590; Thu, 02 Aug 2012 10:30:34 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id j48si3823746eeo.126.2012.08.02.10.30.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 10:30:34 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Authentication-Results: mx.google.com; spf=neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1SwzEB-0002wy-QQ; Thu, 02 Aug 2012 18:30:27 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Stefano Stabellini , Blue Swirl Subject: [PATCH 2/2] configure: Fix set-but-not-used warning in Xen 4.1 probe Date: Thu, 2 Aug 2012 18:30:27 +0100 Message-Id: <1343928627-11311-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1343928627-11311-1-git-send-email-peter.maydell@linaro.org> References: <1343928627-11311-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQnzERgd60E6GNeHkkHUuhdxqhksa/u/Jm1tpTDzk+VfvypG3mDdAJQqRnYi5hFRq9zks5Bd The Xen 4.1 probe never uses the return value from xc_interface_open(), so was provoking a compiler warning on newer gcc. Fix by not bothering to put the return value anywhere. Signed-off-by: Peter Maydell --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index c47e440..fe65ab1 100755 --- a/configure +++ b/configure @@ -1432,9 +1432,8 @@ EOF # error HVM_MAX_VCPUS not defined #endif int main(void) { - xc_interface *xc; xs_daemon_open(); - xc = xc_interface_open(0, 0, 0); + xc_interface_open(0, 0, 0); xc_hvm_set_mem_type(0, 0, HVMMEM_ram_ro, 0, 0); xc_gnttab_open(NULL, 0); xc_domain_add_to_physmap(0, 0, XENMAPSPACE_gmfn, 0, 0);