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

Re: [Xen-devel] compile warnings in __IRQ_STAT

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] compile warnings in __IRQ_STAT
From: David Hopwood <david.nospam.hopwood@xxxxxxxxxxxxxxxx>
Date: Tue, 15 Mar 2005 20:01:50 +0000
Delivery-date: Tue, 15 Mar 2005 20:03:29 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200503151323.26141.hollisb@xxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <200503151323.26141.hollisb@xxxxxxxxxx>
Reply-to: david.nospam.hopwood@xxxxxxxxxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)
Hollis Blanchard wrote:
/home/hollis/source/xeno-unstable-ppc/xen/include/xen/softirq.h: In function `cpu_raise_softirq': /home/hollis/source/xeno-unstable-ppc/xen/include/xen/softirq.h:28: warning: use of compound expressions as lvalues is deprecated

[...]
#define __IRQ_STAT(cpu, member) ((void)(cpu), irq_stat[0].member)

So the warning is caused by this statement:
    &((void)(cpu),  irq_stat[0].member))

[...] Suggestions on how to fix?

#define __IRQ_STAT(cpu, member) (irq_stat[((void)(cpu), 0)].member)

--
David Hopwood <david.nospam.hopwood@xxxxxxxxxxxxxxxx>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

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