From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hopwood Subject: Re: compile warnings in __IRQ_STAT Date: Tue, 15 Mar 2005 20:01:50 +0000 Message-ID: <42373F2E.7000900@blueyonder.co.uk> References: <200503151323.26141.hollisb@us.ibm.com> Reply-To: david.nospam.hopwood@blueyonder.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <200503151323.26141.hollisb@us.ibm.com> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org 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 ------------------------------------------------------- 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