From 18017bf8488cfb072e541a167ecf4dccb9a11489 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 6 Feb 2026 13:02:43 +0100 Subject: [PATCH] dri2: declare variables where needed DRI2WakeClient() Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/dri2/dri2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Xext/dri2/dri2.c b/Xext/dri2/dri2.c index dee7b746c5..148b361f1e 100644 --- a/Xext/dri2/dri2.c +++ b/Xext/dri2/dri2.c @@ -971,9 +971,7 @@ DRI2WakeClient(ClientPtr client, DrawablePtr pDraw, int frame, unsigned int tv_sec, unsigned int tv_usec) { ScreenPtr pScreen = pDraw->pScreen; - DRI2DrawablePtr pPriv; - - pPriv = DRI2GetDrawable(pDraw); + DRI2DrawablePtr pPriv = DRI2GetDrawable(pDraw); if (pPriv == NULL) { xf86DrvMsg(pScreen->myNum, X_ERROR, "[DRI2] %s: bad drawable\n", __func__);