[Spice-devel] [xf86-video-qxl warnings 6/6] Eliminate a gcc "cast discards '__attribute__((const))'" warning

Jeremy White jwhite at codeweavers.com
Thu Mar 21 09:23:22 PDT 2013


Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 src/uxa/uxa-accel.c |    2 +-
 src/uxa/uxa-priv.h  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/uxa/uxa-accel.c b/src/uxa/uxa-accel.c
index f7c32b7..b84b2b3 100644
--- a/src/uxa/uxa-accel.c
+++ b/src/uxa/uxa-accel.c
@@ -949,7 +949,7 @@ out:
 	REGION_DESTROY(pScreen, pReg);
 }
 
-const GCOps uxa_ops = {
+GCOps uxa_ops = {
 	uxa_fill_spans,
 	uxa_check_set_spans,
 	uxa_put_image,
diff --git a/src/uxa/uxa-priv.h b/src/uxa/uxa-priv.h
index e3c581c..694ba45 100644
--- a/src/uxa/uxa-priv.h
+++ b/src/uxa/uxa-priv.h
@@ -291,7 +291,7 @@ void
 uxa_get_image(DrawablePtr pDrawable, int x, int y, int w, int h,
 	      unsigned int format, unsigned long planeMask, char *d);
 
-extern const GCOps uxa_ops;
+extern GCOps uxa_ops;
 
 #ifdef RENDER
 
-- 
1.7.10.4




More information about the Spice-devel mailing list