hw/xwin: Fix unused-but-set-variable warning in winMinimizeWindow() when built !XWIN_MULTIWINDOWEXTWM
/jhbuild/checkout/xorg/xserver/hw/xwin/winmultiwindowwindow.c: In function ‘winMinimizeWindow’: /jhbuild/checkout/xorg/xserver/hw/xwin/winmultiwindowwindow.c:813:20: error: variable ‘pScreenInfo’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
b284666f09
commit
7dae1e59ce
|
@ -808,7 +808,6 @@ winMinimizeWindow(Window id)
|
|||
HWND hWnd;
|
||||
ScreenPtr pScreen = NULL;
|
||||
winPrivScreenPtr pScreenPriv = NULL;
|
||||
winScreenInfo *pScreenInfo = NULL;
|
||||
|
||||
#if CYGWINDOWING_DEBUG
|
||||
ErrorF("winMinimizeWindow\n");
|
||||
|
@ -824,11 +823,9 @@ winMinimizeWindow(Window id)
|
|||
pScreen = pWin->drawable.pScreen;
|
||||
if (pScreen)
|
||||
pScreenPriv = winGetScreenPriv(pScreen);
|
||||
if (pScreenPriv)
|
||||
pScreenInfo = pScreenPriv->pScreenInfo;
|
||||
|
||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||
if (pScreenPriv && pScreenInfo->fInternalWM) {
|
||||
if (pScreenPriv && pScreenPriv->pScreenInfo->fInternalWM) {
|
||||
pRLWinPriv =
|
||||
(win32RootlessWindowPtr) RootlessFrameForWindow(pWin, FALSE);
|
||||
hWnd = pRLWinPriv->hWnd;
|
||||
|
|
Loading…
Reference in New Issue
Block a user