[PATCH] Explicitly cast the SDK symbols to 'void *'
Tomas Carnecky
tom at dbservice.com
Tue Feb 3 15:09:05 PST 2009
Two symbols (isItTimeToYield and dispatchException) are declared
as volatile in the source and gcc doesn't like that the modifier
is implicitely removed. Use an explicit cast.
Signed-off-by: Tomas Carnecky <tom at dbservice.com>
---
hw/xfree86/loader/sdksyms.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/xfree86/loader/sdksyms.sh b/hw/xfree86/loader/sdksyms.sh
index be0b0ee..b320661 100755
--- a/hw/xfree86/loader/sdksyms.sh
+++ b/hw/xfree86/loader/sdksyms.sh
@@ -399,7 +399,7 @@ BEGIN {
sub(/[^a-zA-Z0-9_].*/, "", symbol);
#print;
- printf(" &%s,\n", symbol);
+ printf(" (void *) &%s,\n", symbol);
}
}
--
1.6.1.2
More information about the xorg
mailing list