[PATCH 15/37] Xext: Clean up warnings

Keith Packard keithp at keithp.com
Sun Nov 17 00:01:40 PST 2013


GC funcs and ops are const.
Remove unused variables.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 Xext/panoramiX.c | 4 ++--
 Xext/xres.c      | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c
index 2b3a570..90ae0d2 100644
--- a/Xext/panoramiX.c
+++ b/Xext/panoramiX.c
@@ -117,7 +117,7 @@ static DevPrivateKeyRec PanoramiXScreenKeyRec;
 typedef struct {
     DDXPointRec clipOrg;
     DDXPointRec patOrg;
-    GCFuncs *wrapFuncs;
+    const GCFuncs *wrapFuncs;
 } PanoramiXGCRec, *PanoramiXGCPtr;
 
 typedef struct {
@@ -133,7 +133,7 @@ static void XineramaChangeClip(GCPtr, int, pointer, int);
 static void XineramaDestroyClip(GCPtr);
 static void XineramaCopyClip(GCPtr, GCPtr);
 
-static GCFuncs XineramaGCFuncs = {
+static const GCFuncs XineramaGCFuncs = {
     XineramaValidateGC, XineramaChangeGC, XineramaCopyGC, XineramaDestroyGC,
     XineramaChangeClip, XineramaDestroyClip, XineramaCopyClip
 };
diff --git a/Xext/xres.c b/Xext/xres.c
index 445abca..bdd49eb 100644
--- a/Xext/xres.c
+++ b/Xext/xres.c
@@ -193,7 +193,6 @@ DestroyConstructResourceBytesCtx(ConstructResourceBytesCtx *ctx)
 static int
 ProcXResQueryVersion(ClientPtr client)
 {
-    REQUEST(xXResQueryVersionReq);
     xXResQueryVersionReply rep = {
         .type = X_Reply,
         .sequenceNumber = client->sequence,
@@ -1103,7 +1102,6 @@ ProcResDispatch(ClientPtr client)
 static int
 SProcXResQueryVersion(ClientPtr client)
 {
-    REQUEST(xXResQueryVersionReq);
     REQUEST_SIZE_MATCH(xXResQueryVersionReq);
     return ProcXResQueryVersion(client);
 }
-- 
1.8.4.2



More information about the xorg-devel mailing list