Austin English : d3d8/d3d9: Fix a compiler warning on non-i386/x86_64.

Alexandre Julliard julliard at winehq.org
Tue Aug 24 11:09:17 CDT 2010


Module: wine
Branch: master
Commit: 243771deb1347a8812841280d56ee9b88e7eac1e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=243771deb1347a8812841280d56ee9b88e7eac1e

Author: Austin English <austinenglish at gmail.com>
Date:   Mon Aug 23 11:36:57 2010 -0500

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

---

 dlls/d3d8/device.c |    3 +--
 dlls/d3d9/device.c |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index c2dd948..f889564 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -2767,9 +2767,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 9af042d..f5bcbaa 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2835,9 +2835,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-cvs mailing list