hw/xwin: Fix unused-but-set-variable warning in winMWExtWMUpdateWindowDecoration()
/jhbuild/checkout/xorg/xserver/hw/xwin/winwin32rootlesswindow.c: In function ‘winMWExtWMUpdateWindowDecoration’: /jhbuild/checkout/xorg/xserver/hw/xwin/winwin32rootlesswindow.c:189:11: error: variable ‘dwStyle’ 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
fbf819c24d
commit
bcfd523c15
|
@ -186,7 +186,6 @@ winMWExtWMUpdateWindowDecoration(win32RootlessWindowPtr pRLWinPriv,
|
|||
{
|
||||
Bool fDecorate = FALSE;
|
||||
DWORD dwExStyle = 0;
|
||||
DWORD dwStyle = 0;
|
||||
WINDOWPLACEMENT wndPlace;
|
||||
UINT showCmd = 0;
|
||||
|
||||
|
@ -217,9 +216,8 @@ winMWExtWMUpdateWindowDecoration(win32RootlessWindowPtr pRLWinPriv,
|
|||
winDebug("winMWExtWMUpdateWindowDecoration %08x %s\n",
|
||||
(int) pRLWinPriv, fDecorate ? "Decorate" : "Bare");
|
||||
|
||||
/* Get the standard and extended window style information */
|
||||
/* Get the extended window style information */
|
||||
dwExStyle = GetWindowLongPtr(pRLWinPriv->hWnd, GWL_EXSTYLE);
|
||||
dwStyle = GetWindowLongPtr(pRLWinPriv->hWnd, GWL_STYLE);
|
||||
|
||||
if (fDecorate) {
|
||||
RECT rcNew;
|
||||
|
|
Loading…
Reference in New Issue