summaryrefslogtreecommitdiff
path: root/randr/rrmode.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-21 18:42:46 -0700
committerKeith Packard <keithp@keithp.com>2012-06-21 18:42:46 -0700
commit4ba340cfaa8d430c808566495f8deda0ff1b4424 (patch)
treedb24b4e3785a0ef288620c4a6c41bb348e66208d /randr/rrmode.c
parent3ef3ce069d52dcfa932c90ccd30854a8d9daa15a (diff)
randr: Clean up compiler warnings about unused and shadowing variables
set but not used variables shadowing a previous local A hidden problem was that the VERIFY_RR_* macros define local 'rc' variables, any other local definitions for those would be shadowed and generate warnings from gcc. I've renamed the other locals 'ret' instead of 'rc'. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'randr/rrmode.c')
-rw-r--r--randr/rrmode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/randr/rrmode.c b/randr/rrmode.c
index b637c06b9..49a45c7f6 100644
--- a/randr/rrmode.c
+++ b/randr/rrmode.c
@@ -173,7 +173,7 @@ RRModesForScreen(ScreenPtr pScreen, int *num_ret)
*/
for (o = 0; o < pScrPriv->numOutputs; o++) {
RROutputPtr output = pScrPriv->outputs[o];
- int m, n;
+ int n;
for (m = 0; m < output->numModes + output->numUserModes; m++) {
RRModePtr mode = (m < output->numModes ?
@@ -285,7 +285,6 @@ ProcRRCreateMode(ClientPtr client)
xRRCreateModeReply rep = { 0 };
WindowPtr pWin;
ScreenPtr pScreen;
- rrScrPrivPtr pScrPriv;
xRRModeInfo *modeInfo;
long units_after;
char *name;
@@ -298,7 +297,6 @@ ProcRRCreateMode(ClientPtr client)
return rc;
pScreen = pWin->drawable.pScreen;
- pScrPriv = rrGetScrPriv(pScreen);
modeInfo = &stuff->modeInfo;
name = (char *) (stuff + 1);