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: 174792 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 A8E002C008C for ; Fri, 3 Aug 2012 03:31:08 +1000 (EST) Received: from localhost ([::1]:46142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwzEo-0005n8-At for incoming@patchwork.ozlabs.org; Thu, 02 Aug 2012 13:31:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwzES-0005Pv-CS for qemu-devel@nongnu.org; Thu, 02 Aug 2012 13:30:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwzEP-0005Y1-2Z for qemu-devel@nongnu.org; Thu, 02 Aug 2012 13:30:44 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:54871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwzEO-0005Uy-Ll for qemu-devel@nongnu.org; Thu, 02 Aug 2012 13:30:40 -0400 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 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: Blue Swirl , Stefano Stabellini , patches@linaro.org Subject: [Qemu-devel] [PATCH 2/2] configure: Fix set-but-not-used warning in Xen 4.1 probe 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 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);