Skip to contentSkip to conversation

Fix Xen to build with gcc-4.1.

Xen-changelog Jerone Young 1 participant 1 message Nov 23, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 12 lines · Xen patchbot -unstable

# HG changeset patch
# User [email protected]
# Node ID 14d733e5e1d014e302d72fb78df1428ee08e3ce3 # Parent 6cc603ac3f38f8f4b760899e963ef8165ae0c8ee Fix Xen to build with gcc-4.1.

diff -r 6cc603ac3f38 -r 14d733e5e1d0 xen/include/asm-x86/apic.h

xen/include/asm-x86/apic.h line 47

Quoted 6 lines
xen/include/asm-x86/apic.h +1 -1
@@ -43,7 +43,7 @@
 
 static __inline void apic_write_atomic(unsigned long reg, u32 v)
 {
-	xchg((volatile u32 *)(APIC_BASE+reg), v);
+	(void)xchg((volatile u32 *)(APIC_BASE+reg), v);
 }

Is it just me or are the gcc folks taking this stuff a little too far since gcc 4. Having to cast to void in an inline function just seems a bit overboard.

Quoted 8 lines
xen/include/asm-x86/apic.h +0 -0
 static __inline u32 apic_read(unsigned long reg)
 

_______________________________________________
Xen-changelog mailing list
[email protected]
http://lists.xensource.com/xen-changelog