WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 02 of 45] gcc-4.6 compile fix: tools/libxc/xc_domain_

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 02 of 45] gcc-4.6 compile fix: tools/libxc/xc_domain_restore.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:21 +0200
Delivery-date: Thu, 19 May 2011 12:08:47 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305831967; l=1130; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=IIMwjCtS18dUfWzHL6oCJtsaEjk=; b=xWz7aZy+Ev8rW078DJ6+h0rMkiLuFimPsXLY87e8D880Bu0xpcoaURA3vDrzFyvg/0J fzNVLMa57uSPuH3R6ZuNKgsn2b9xeHgVjyiheBhTpLSu8Y0aJMEyI/1QqN5VjdNQDPRd3 WjYUqnFaRcBuJrHMyFjDMdDq0dHR/ywZ1Ic=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305831919@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1305831919@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824382 -7200
# Node ID 9c492ce99bbe24e1b4bbe43c754f136ac19a372f
# Parent  f1cb18c064c9588c1f6336cc5eb73b5a5b6e874b
gcc-4.6 compile fix: tools/libxc/xc_domain_restore.c

xc_domain_restore.c: In function 'xc_domain_restore':
xc_domain_restore.c:1090:18: error: variable 'prev_pc' set but not used 
[-Werror=unused-but-set-variable]

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r f1cb18c064c9 -r 9c492ce99bbe tools/libxc/xc_domain_restore.c
--- a/tools/libxc/xc_domain_restore.c   Thu May 19 18:59:41 2011 +0200
+++ b/tools/libxc/xc_domain_restore.c   Thu May 19 18:59:42 2011 +0200
@@ -1087,7 +1087,6 @@ int xc_domain_restore(xc_interface *xch,
     int vcpuextstate = 0;
     uint32_t vcpuextstate_size = 0;
     unsigned long mfn, pfn;
-    unsigned int prev_pc;
     int nraces = 0;
 
     /* The new domain's shared-info frame number. */
@@ -1255,7 +1254,6 @@ int xc_domain_restore(xc_interface *xch,
      * Now simply read each saved frame into its new machine frame.
      * We uncanonicalise page tables as we go.
      */
-    prev_pc = 0;
 
     n = m = 0;
  loadpages:

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel