(!1703) mi: miexpose: fit FTBS w/ rootless helper

FTBS when rootless subsys enabled:

> ../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 09bb70272f
commit 2cae6b5d7d

View File

@ -406,7 +406,6 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
xRectangle *prect;
int numRects, regionnumrects;
#ifdef COMPOSITE
WindowPtr orig_pWin = pWin;
#endif
/*
@ -494,6 +493,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) {