[Spice-devel] [PATCH 1/6] gcc-4.6.0 fix: cast unmatching function pointers

Alon Levy alevy at redhat.com
Thu Feb 10 11:05:02 PST 2011


---
 src/qxl_driver.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 4240c8a..6399d31 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -781,12 +781,12 @@ setup_uxa (qxl_screen_t *qxl, ScreenPtr screen)
     qxl->uxa->done_copy = qxl_done_copy;
     
     /* Composite */
-    qxl->uxa->check_composite = unaccel;
-    qxl->uxa->check_composite_target = unaccel;
-    qxl->uxa->check_composite_texture = unaccel;
-    qxl->uxa->prepare_composite = unaccel;
-    qxl->uxa->composite = unaccel;
-    qxl->uxa->done_composite = unaccel;
+    qxl->uxa->check_composite = (typeof(qxl->uxa->check_composite))unaccel;
+    qxl->uxa->check_composite_target = (typeof(qxl->uxa->check_composite_target))unaccel;
+    qxl->uxa->check_composite_texture = (typeof(qxl->uxa->check_composite_texture))unaccel;
+    qxl->uxa->prepare_composite = (typeof(qxl->uxa->prepare_composite))unaccel;
+    qxl->uxa->composite = (typeof(qxl->uxa->composite))unaccel;
+    qxl->uxa->done_composite = (typeof(qxl->uxa->done_composite))unaccel;
     
     /* PutImage */
     qxl->uxa->put_image = qxl_put_image;
-- 
1.7.4



More information about the Spice-devel mailing list