mi: miexpose: fit FTBS w/ rootless helper

> ../mi/miexpose.c: In function ‘miPaintWindow’:
> ../mi/miexpose.c:411:15: error: unused variable ‘orig_pWin’ [-Werror=unused-variable]
>   411 |     WindowPtr orig_pWin = pWin;
>       |               ^~~~~~~~~
> cc1: all warnings being treated as errors

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-09-23 19:50:55 +02:00
parent 3cd096e0c4
commit 1eb5bf7b61

View File

@ -408,7 +408,6 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
xRectangle *prect;
int numRects, regionnumrects;
#ifdef COMPOSITE
WindowPtr orig_pWin = pWin;
#endif
/*
@ -496,6 +495,7 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
#ifdef COMPOSITE
/* Make sure alpha will sample as 1.0 for opaque windows */
if (drawable->depth == 32) {
WindowPtr orig_pWin = pWin;
int effective_depth = orig_pWin->drawable.depth;
if (effective_depth == 32) {