rootless: fix warnings due to lack of const keeping.
Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
b923443816
commit
7f506b8099
|
@ -70,8 +70,8 @@ extern DevPrivateKeyRec rootlessWindowOldPixmapPrivateKeyRec;
|
||||||
|
|
||||||
// RootlessGCRec: private per-gc data
|
// RootlessGCRec: private per-gc data
|
||||||
typedef struct {
|
typedef struct {
|
||||||
GCFuncs *originalFuncs;
|
const GCFuncs *originalFuncs;
|
||||||
GCOps *originalOps;
|
const GCOps *originalOps;
|
||||||
} RootlessGCRec;
|
} RootlessGCRec;
|
||||||
|
|
||||||
// RootlessScreenRec: per-screen private data
|
// RootlessScreenRec: per-screen private data
|
||||||
|
|
|
@ -403,7 +403,7 @@ RootlessCopyClip(GCPtr pgcDst, GCPtr pgcSrc)
|
||||||
#define GCOP_UNWRAP(pGC) \
|
#define GCOP_UNWRAP(pGC) \
|
||||||
RootlessGCRec *gcrec = (RootlessGCRec *) \
|
RootlessGCRec *gcrec = (RootlessGCRec *) \
|
||||||
dixLookupPrivate(&(pGC)->devPrivates, rootlessGCPrivateKey); \
|
dixLookupPrivate(&(pGC)->devPrivates, rootlessGCPrivateKey); \
|
||||||
GCFuncs *saveFuncs = pGC->funcs; \
|
const GCFuncs *saveFuncs = pGC->funcs; \
|
||||||
(pGC)->funcs = gcrec->originalFuncs; \
|
(pGC)->funcs = gcrec->originalFuncs; \
|
||||||
(pGC)->ops = gcrec->originalOps;
|
(pGC)->ops = gcrec->originalOps;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue