From b1468fbac0e0ac28f85e43805bbd22f4203b907b Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Fri, 14 Mar 2008 00:59:04 -0300 Subject: [PATCH] Compile warning fixes. Add defintion of _XRRHasRates to Xrandrint.h and remove declaration of unused variables. --- src/Xrandrint.h | 4 ++++ src/XrrCrtc.c | 4 ---- src/XrrMode.c | 3 +-- src/XrrOutput.c | 2 -- src/XrrProperty.c | 12 ++---------- 5 files changed, 7 insertions(+), 18 deletions(-) diff --git a/src/Xrandrint.h b/src/Xrandrint.h index 14675bd..4efc2fd 100644 --- a/src/Xrandrint.h +++ b/src/Xrandrint.h @@ -100,4 +100,8 @@ _XRRVersionHandler (Display *dpy, int len, XPointer data); +Bool +_XRRHasRates (int major, + int minor); + #endif /* _XRANDRINT_H_ */ diff --git a/src/XrrCrtc.c b/src/XrrCrtc.c index 5e5c813..156a5d5 100644 --- a/src/XrrCrtc.c +++ b/src/XrrCrtc.c @@ -39,7 +39,6 @@ XRRGetCrtcInfo (Display *dpy, XRRScreenResources *resources, RRCrtc crtc) xRRGetCrtcInfoReply rep; xRRGetCrtcInfoReq *req; int nbytes, nbytesRead, rbytes; - int i; XRRCrtcInfo *xci; RRCheckExtension (dpy, info, 0); @@ -128,7 +127,6 @@ XRRSetCrtcConfig (Display *dpy, XExtDisplayInfo *info = XRRFindDisplay(dpy); xRRSetCrtcConfigReply rep; xRRSetCrtcConfigReq *req; - int i; RRCheckExtension (dpy, info, 0); @@ -159,7 +157,6 @@ XRRGetCrtcGammaSize (Display *dpy, RRCrtc crtc) XExtDisplayInfo *info = XRRFindDisplay(dpy); xRRGetCrtcGammaSizeReply rep; xRRGetCrtcGammaSizeReq *req; - int i; RRCheckExtension (dpy, info, 0); @@ -182,7 +179,6 @@ XRRGetCrtcGamma (Display *dpy, RRCrtc crtc) XExtDisplayInfo *info = XRRFindDisplay(dpy); xRRGetCrtcGammaReply rep; xRRGetCrtcGammaReq *req; - int i; XRRCrtcGamma *crtc_gamma; long nbytes; long nbytesRead; diff --git a/src/XrrMode.c b/src/XrrMode.c index fc624e1..a9db59c 100644 --- a/src/XrrMode.c +++ b/src/XrrMode.c @@ -54,9 +54,8 @@ XRRCreateMode (Display *dpy, Window window, XRRModeInfo *mode_info) XExtDisplayInfo *info = XRRFindDisplay(dpy); xRRCreateModeReq *req; xRRCreateModeReply rep; - long channelSize; - RRSimpleCheckExtension (dpy, info); + RRCheckExtension (dpy, info, 0); LockDisplay(dpy); GetReq (RRCreateMode, req); diff --git a/src/XrrOutput.c b/src/XrrOutput.c index 1fe03ae..ad84538 100644 --- a/src/XrrOutput.c +++ b/src/XrrOutput.c @@ -41,8 +41,6 @@ XRRGetOutputInfo (Display *dpy, XRRScreenResources *resources, RROutput output) xRRGetOutputInfoReply rep; xRRGetOutputInfoReq *req; int nbytes, nbytesRead, rbytes; - int i; - xRRQueryVersionReq *vreq; XRROutputInfo *xoi; RRCheckExtension (dpy, info, 0); diff --git a/src/XrrProperty.c b/src/XrrProperty.c index 8377fff..3d54e8b 100644 --- a/src/XrrProperty.c +++ b/src/XrrProperty.c @@ -38,9 +38,7 @@ XRRListOutputProperties (Display *dpy, RROutput output, int *nprop) XExtDisplayInfo *info = XRRFindDisplay(dpy); xRRListOutputPropertiesReply rep; xRRListOutputPropertiesReq *req; - int nbytes, nbytesRead, rbytes; - int i; - xRRQueryVersionReq *vreq; + int nbytes, rbytes; Atom *props; RRCheckExtension (dpy, info, 0); @@ -87,8 +85,6 @@ XRRQueryOutputProperty (Display *dpy, RROutput output, Atom property) xRRQueryOutputPropertyReply rep; xRRQueryOutputPropertyReq *req; int rbytes, nbytes; - int i; - xRRQueryVersionReq *vreq; XRRPropertyInfo *prop_info; RRCheckExtension (dpy, info, 0); @@ -140,7 +136,6 @@ XRRConfigureOutputProperty (Display *dpy, RROutput output, Atom property, { XExtDisplayInfo *info = XRRFindDisplay(dpy); xRRConfigureOutputPropertyReq *req; - xRRQueryVersionReq *vreq; long len; RRSimpleCheckExtension (dpy, info); @@ -173,7 +168,6 @@ XRRChangeOutputProperty (Display *dpy, RROutput output, { XExtDisplayInfo *info = XRRFindDisplay(dpy); xRRChangeOutputPropertyReq *req; - xRRQueryVersionReq *vreq; long len; RRSimpleCheckExtension (dpy, info); @@ -258,9 +252,7 @@ XRRGetOutputProperty (Display *dpy, RROutput output, XExtDisplayInfo *info = XRRFindDisplay(dpy); xRRGetOutputPropertyReply rep; xRRGetOutputPropertyReq *req; - long nbytes, rbytes, nbytesRead; - int i; - xRRQueryVersionReq *vreq; + long nbytes, rbytes; RRCheckExtension (dpy, info, 1); -- 1.5.3.2