summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2021-02-20 15:17:18 -0800
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2021-02-20 15:18:47 -0800
commit6a83fb51b7a8b2e167e7d6380229b69e5452f91f (patch)
tree7462aa81dd4f44f15a845f2ffad4acd98f63993f
parenta3ddcdd56c246e2226c7cdf372c2a1294eb6d888 (diff)
xquartz: Fix a compiler warning about const incompatible pointer assignment
driWrap.c:541:30: error: assigning to 'GCOps *' (aka 'struct _GCOps *') from 'const GCOps *' (aka 'const struct _GCOps *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] pGCPriv->originalOps = pGC->ops; ^ ~~~~~~~~ Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r--hw/xquartz/xpr/driWrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/xpr/driWrap.c b/hw/xquartz/xpr/driWrap.c
index 42282d52b..f588a834d 100644
--- a/hw/xquartz/xpr/driWrap.c
+++ b/hw/xquartz/xpr/driWrap.c
@@ -45,7 +45,7 @@
#include <OpenGL/OpenGL.h>
typedef struct {
- GCOps *originalOps;
+ GCOps const *originalOps;
} DRIGCRec;
typedef struct {