Xext: Clean up warnings
GC funcs and ops are const. Remove unused variables. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
2f6e8eb70d
commit
a1cb69dc28
|
@ -118,7 +118,7 @@ static DevPrivateKeyRec PanoramiXScreenKeyRec;
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DDXPointRec clipOrg;
|
DDXPointRec clipOrg;
|
||||||
DDXPointRec patOrg;
|
DDXPointRec patOrg;
|
||||||
GCFuncs *wrapFuncs;
|
const GCFuncs *wrapFuncs;
|
||||||
} PanoramiXGCRec, *PanoramiXGCPtr;
|
} PanoramiXGCRec, *PanoramiXGCPtr;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -134,7 +134,7 @@ static void XineramaChangeClip(GCPtr, int, pointer, int);
|
||||||
static void XineramaDestroyClip(GCPtr);
|
static void XineramaDestroyClip(GCPtr);
|
||||||
static void XineramaCopyClip(GCPtr, GCPtr);
|
static void XineramaCopyClip(GCPtr, GCPtr);
|
||||||
|
|
||||||
static GCFuncs XineramaGCFuncs = {
|
static const GCFuncs XineramaGCFuncs = {
|
||||||
XineramaValidateGC, XineramaChangeGC, XineramaCopyGC, XineramaDestroyGC,
|
XineramaValidateGC, XineramaChangeGC, XineramaCopyGC, XineramaDestroyGC,
|
||||||
XineramaChangeClip, XineramaDestroyClip, XineramaCopyClip
|
XineramaChangeClip, XineramaDestroyClip, XineramaCopyClip
|
||||||
};
|
};
|
||||||
|
|
|
@ -193,7 +193,6 @@ DestroyConstructResourceBytesCtx(ConstructResourceBytesCtx *ctx)
|
||||||
static int
|
static int
|
||||||
ProcXResQueryVersion(ClientPtr client)
|
ProcXResQueryVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXResQueryVersionReq);
|
|
||||||
xXResQueryVersionReply rep = {
|
xXResQueryVersionReply rep = {
|
||||||
.type = X_Reply,
|
.type = X_Reply,
|
||||||
.sequenceNumber = client->sequence,
|
.sequenceNumber = client->sequence,
|
||||||
|
@ -1103,7 +1102,6 @@ ProcResDispatch(ClientPtr client)
|
||||||
static int
|
static int
|
||||||
SProcXResQueryVersion(ClientPtr client)
|
SProcXResQueryVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXResQueryVersionReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXResQueryVersionReq);
|
REQUEST_SIZE_MATCH(xXResQueryVersionReq);
|
||||||
return ProcXResQueryVersion(client);
|
return ProcXResQueryVersion(client);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user