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 27 of 45] gcc-4.6 compile fix: xen/arch/x86/acpi/cpu_

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 27 of 45] gcc-4.6 compile fix: xen/arch/x86/acpi/cpu_idle.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:46 +0200
Delivery-date: Thu, 19 May 2011 12:32:19 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832198; l=853; 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=KPWCaSqdGu3V9Jox1KEZ6kg93Pg=; b=iQakV0dXwbow/wCJS3sZKnagldLZ/8VFM9sqasIIQpoozpbkFJYxxjjVc1jt64HNiHE Mlctwa437KXYJgEo3IcI2eHV5rLV5G3XCxY/0HvSTuMKkHgfYlxRCOo2omsrjRHNQ3CZ0 gyxVF5vK1mrfUrCLCyMEtDRq8k0eZpWNOg8=
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 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

<Prev in Thread] Current Thread [Next in Thread>