d3d8/d3d9: fix compiler warnings on non x86/x86_64

Austin English austinenglish at gmail.com
Thu Dec 2 13:41:17 CST 2010


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 1adedc3..ef040c1 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -1970,6 +1970,7 @@ static inline WORD get_fpu_cw(void)
 
 static void test_fpu_setup(void)
 {
+#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
     D3DPRESENT_PARAMETERS present_parameters;
     IDirect3DDevice8 *device;
     D3DDISPLAYMODE d3ddm;
@@ -2032,6 +2033,7 @@ static void test_fpu_setup(void)
 done:
     if (window) DestroyWindow(window);
     if (d3d8) IDirect3D8_Release(d3d8);
+#endif
 }
 
 static void test_ApplyStateBlock(void)
@@ -2121,9 +2123,7 @@ START_TEST(device)
         }
         IDirect3D8_Release(d3d8);
 
-#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
         test_fpu_setup();
-#endif
         test_display_modes();
         test_shader_versions();
         test_swapchain();
diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index bb57917..671afbf 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -2811,6 +2811,7 @@ static inline WORD get_fpu_cw(void)
 
 static void test_fpu_setup(void)
 {
+#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
     D3DPRESENT_PARAMETERS present_parameters;
     IDirect3DDevice9 *device;
     HWND window = NULL;
@@ -2868,6 +2869,7 @@ static void test_fpu_setup(void)
 done:
     if (window) DestroyWindow(window);
     if (d3d9) IDirect3D9_Release(d3d9);
+#endif
 }
 
 START_TEST(device)
@@ -2891,9 +2893,7 @@ START_TEST(device)
         }
         IDirect3D9_Release(d3d9);
 
-#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
         test_fpu_setup();
-#endif
         test_multi_device();
         test_display_formats();
         test_display_modes();


More information about the wine-patches mailing list