From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 38 of 45] gcc-4.6 compile fix: xen/arch/x86/mm.c Date: Thu, 19 May 2011 21:05:57 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # Date 1305824426 -7200 # Node ID ce00a34fc0a36f9c0d85e2ada2f458a6fc107641 # Parent 305d1c98f6f82bfec8efb7798520ff39371c1cdf gcc-4.6 compile fix: xen/arch/x86/mm.c mm.c: In function 'ptwr_emulated_update': mm.c:4979:23: error: variable 'page' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Olaf Hering diff -r 305d1c98f6f8 -r ce00a34fc0a3 xen/arch/x86/mm.c --- a/xen/arch/x86/mm.c Thu May 19 19:00:25 2011 +0200 +++ b/xen/arch/x86/mm.c Thu May 19 19:00:26 2011 +0200 @@ -4976,7 +4976,7 @@ static int ptwr_emulated_update( { unsigned long mfn; unsigned long unaligned_addr = addr; - struct page_info *page; + struct page_info *page __attribute__((unused)); l1_pgentry_t pte, ol1e, nl1e, *pl1e; struct vcpu *v = current; struct domain *d = v->domain;