d3d8/d3d9: fix a compiler warning on non-i386/x86_64

Austin English austinenglish at gmail.com
Mon Aug 23 11:36:57 CDT 2010


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index fad94e4..9ad7010 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -2765,9 +2765,8 @@ static const IWineD3DDeviceParentVtbl d3d8_wined3d_device_parent_vtbl =

 static void setup_fpu(void)
 {
-    WORD cw;
-
 #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
+    WORD cw;
     __asm__ volatile ("fnstcw %0" : "=m" (cw));
     cw = (cw & ~0xf3f) | 0x3f;
     __asm__ volatile ("fldcw %0" : : "m" (cw));
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index b9f539e..e5e4cb5 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2824,9 +2824,8 @@ static const IWineD3DDeviceParentVtbl d3d9_wined3d_device_parent_vtbl =

 static void setup_fpu(void)
 {
-    WORD cw;
-
 #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
+    WORD cw;
     __asm__ volatile ("fnstcw %0" : "=m" (cw));
     cw = (cw & ~0xf3f) | 0x3f;
     __asm__ volatile ("fldcw %0" : : "m" (cw));


More information about the wine-patches mailing list