From: Olaf Hering Subject: [PATCH 05 of 45] gcc-4.6 compile fix: tools/xcutils/xc_restore.c Date: Thu, 19 May 2011 21:05:24 +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 1305824386 -7200 # Node ID d30215ff28c8f4c02476a4d41a83e76cb2f1f6fa # Parent cc966312031cef3c6463c77287087a339594fe18 gcc-4.6 compile fix: tools/xcutils/xc_restore.c xc_restore.c: In function 'main': xc_restore.c:22:28: error: variable 'apic' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Olaf Hering diff -r cc966312031c -r d30215ff28c8 tools/xcutils/xc_restore.c --- a/tools/xcutils/xc_restore.c Thu May 19 18:59:45 2011 +0200 +++ b/tools/xcutils/xc_restore.c Thu May 19 18:59:46 2011 +0200 @@ -19,7 +19,7 @@ int main(int argc, char **argv) { unsigned int domid, store_evtchn, console_evtchn; - unsigned int hvm, pae, apic; + unsigned int hvm, pae; xc_interface *xch; int io_fd, ret; int superpages; @@ -39,7 +39,6 @@ main(int argc, char **argv) console_evtchn = atoi(argv[4]); hvm = atoi(argv[5]); pae = atoi(argv[6]); - apic = atoi(argv[7]); if ( argc == 9 ) superpages = atoi(argv[8]); else