mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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>
(cherry picked from commit 6ee163cb94)
This commit is contained in:
committed by
Alan Coopersmith
parent
5a8172f8c5
commit
516c178f2a
@@ -405,9 +405,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
|
||||
@@ -494,6 +491,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) {
|
||||
|
||||
Reference in New Issue
Block a user