mi: miexpose: fix 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> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1703>
This commit is contained in:
parent
bcbc7479f3
commit
6ee163cb94
|
@ -403,9 +403,6 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
|
|||
BoxPtr pbox;
|
||||
xRectangle *prect;
|
||||
int numRects, regionnumrects;
|
||||
#ifdef COMPOSITE
|
||||
WindowPtr orig_pWin = pWin;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Distance from screen to destination drawable, use this
|
||||
|
@ -492,6 +489,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) {
|
||||
|
|
Loading…
Reference in New Issue