summaryrefslogtreecommitdiff
path: root/src/Xrender.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-28 12:01:13 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-07 17:59:53 +0000
commit5a69e234cd4e02186b5b2627360f91cb1fa58edf (patch)
tree425d8e0e66ff11cf000ebe93d6ca90c5f5ecd3cb /src/Xrender.c
parent2b927f88ad3d97e5fd1abd13b67724a86dd10404 (diff)
Rename xDepth to xPDepth to quiet -Wshadow warnings
Xrender.c: In function ‘XRenderQueryFormats’: Xrender.c:406:19: warning: declaration of ‘xDepth’ shadows a global declaration [-Wshadow] xPictDepth *xDepth; ^~~~~~ In file included from /net/also.us.oracle.com/export/alanc/X.Org/amd64-gcc/install/usr/X11R7/include/X11/Xlibint.h:43:0, from Xrenderint.h:31, from Xrender.c:28: /net/also.us.oracle.com/export/alanc/X.Org/amd64-gcc/install/usr/X11R7/include/X11/Xproto.h:329:7: note: shadowed declaration is here } xDepth; ^~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Xrender.c')
-rw-r--r--src/Xrender.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Xrender.c b/src/Xrender.c
index 299f9d4..efa29b6 100644
--- a/src/Xrender.c
+++ b/src/Xrender.c
@@ -403,7 +403,7 @@ XRenderQueryFormats (Display *dpy)
XRenderVisual *visual;
xPictFormInfo *xFormat;
xPictScreen *xScreen;
- xPictDepth *xDepth;
+ xPictDepth *xPDepth;
xPictVisual *xVisual;
CARD32 *xSubpixel;
void *xData;
@@ -527,7 +527,7 @@ XRenderQueryFormats (Display *dpy)
screen->ndepths = xScreen->nDepth;
screen->fallback = _XRenderFindFormat (xri, xScreen->fallback);
screen->subpixel = SubPixelUnknown;
- xDepth = (xPictDepth *) (xScreen + 1);
+ xPDepth = (xPictDepth *) (xScreen + 1);
if (screen->ndepths > rep.numDepths) {
Xfree (xri);
Xfree (xData);
@@ -539,10 +539,10 @@ XRenderQueryFormats (Display *dpy)
rep.numDepths -= screen->ndepths;
for (int nd = 0; nd < screen->ndepths; nd++)
{
- depth->depth = xDepth->depth;
- depth->nvisuals = xDepth->nPictVisuals;
+ depth->depth = xPDepth->depth;
+ depth->nvisuals = xPDepth->nPictVisuals;
depth->visuals = visual;
- xVisual = (xPictVisual *) (xDepth + 1);
+ xVisual = (xPictVisual *) (xPDepth + 1);
if (depth->nvisuals > rep.numVisuals) {
Xfree (xri);
Xfree (xData);
@@ -560,10 +560,10 @@ XRenderQueryFormats (Display *dpy)
xVisual++;
}
depth++;
- xDepth = (xPictDepth *) xVisual;
+ xPDepth = (xPictDepth *) xVisual;
}
screen++;
- xScreen = (xPictScreen *) xDepth;
+ xScreen = (xPictScreen *) xPDepth;
}
xSubpixel = (CARD32 *) xScreen;
screen = xri->screen;