From 03e239a823475b9955e75fc5d25310442fb63e74 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 6 Feb 2026 17:49:57 +0100 Subject: [PATCH] dri2: declare variables where needed in DRI2ConfigNotify() Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/dri2/dri2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Xext/dri2/dri2.c b/Xext/dri2/dri2.c index 0ca04fe157..3d017d1032 100644 --- a/Xext/dri2/dri2.c +++ b/Xext/dri2/dri2.c @@ -1355,12 +1355,11 @@ DRI2ConfigNotify(WindowPtr pWin, int x, int y, int w, int h, int bw, ScreenPtr pScreen = pDraw->pScreen; DRI2ScreenPtr ds = DRI2GetScreen(pScreen); DRI2DrawablePtr dd = DRI2GetDrawable(pDraw); - int ret; if (ds->ConfigNotify) { pScreen->ConfigNotify = ds->ConfigNotify; - ret = (*pScreen->ConfigNotify) (pWin, x, y, w, h, bw, pSib); + int ret = pScreen->ConfigNotify(pWin, x, y, w, h, bw, pSib); ds->ConfigNotify = pScreen->ConfigNotify; pScreen->ConfigNotify = DRI2ConfigNotify;