mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-16 06:10:32 +01:00
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>
(cherry picked from commit 7f506b8099)
This commit is contained in:
parent
02c94ccddf
commit
3aacda0aea
2 changed files with 3 additions and 3 deletions
|
|
@ -70,8 +70,8 @@ extern DevPrivateKeyRec rootlessWindowOldPixmapPrivateKeyRec;
|
|||
|
||||
// RootlessGCRec: private per-gc data
|
||||
typedef struct {
|
||||
GCFuncs *originalFuncs;
|
||||
GCOps *originalOps;
|
||||
const GCFuncs *originalFuncs;
|
||||
const GCOps *originalOps;
|
||||
} RootlessGCRec;
|
||||
|
||||
// RootlessScreenRec: per-screen private data
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ RootlessCopyClip(GCPtr pgcDst, GCPtr pgcSrc)
|
|||
#define GCOP_UNWRAP(pGC) \
|
||||
RootlessGCRec *gcrec = (RootlessGCRec *) \
|
||||
dixLookupPrivate(&(pGC)->devPrivates, rootlessGCPrivateKey); \
|
||||
GCFuncs *saveFuncs = pGC->funcs; \
|
||||
const GCFuncs *saveFuncs = pGC->funcs; \
|
||||
(pGC)->funcs = gcrec->originalFuncs; \
|
||||
(pGC)->ops = gcrec->originalOps;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue