From bcfd523c150b34e9304d174ba812160c611f270d Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Wed, 3 Apr 2013 18:34:38 +0100 Subject: [PATCH] hw/xwin: Fix unused-but-set-variable warning in winMWExtWMUpdateWindowDecoration() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /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 Reviewed-by: Colin Harrison --- hw/xwin/winwin32rootlesswindow.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/xwin/winwin32rootlesswindow.c b/hw/xwin/winwin32rootlesswindow.c index f2d68cb46..ce615e692 100644 --- a/hw/xwin/winwin32rootlesswindow.c +++ b/hw/xwin/winwin32rootlesswindow.c @@ -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;