[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 27 of 45] gcc-4.6 compile fix: xen/arch/x86/acpi/cpu_idle.c


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 19 May 2011 21:05:46 +0200
  • Delivery-date: Thu, 19 May 2011 12:32:19 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824412 -7200
# Node ID 90160f32dbae6535e54e72375b004c0113ed1f62
# Parent  c8f5b4743f9a91dc1e879d35f8f2d4b981f0963d
gcc-4.6 compile fix: xen/arch/x86/acpi/cpu_idle.c

cpu_idle.c: In function 'acpi_idle_do_entry':
cpu_idle.c:276:9: error: variable 'unused' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r c8f5b4743f9a -r 90160f32dbae xen/arch/x86/acpi/cpu_idle.c
--- a/xen/arch/x86/acpi/cpu_idle.c      Thu May 19 19:00:11 2011 +0200
+++ b/xen/arch/x86/acpi/cpu_idle.c      Thu May 19 19:00:12 2011 +0200
@@ -273,7 +273,7 @@ static void acpi_processor_ffh_cstate_en
 
 static void acpi_idle_do_entry(struct acpi_processor_cx *cx)
 {
-    int unused;
+    int unused __attribute__((unused));
 
     switch ( cx->entry_method )
     {

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.