From c97fbd39adbc0a8cb8537f40b12c091aee29221a Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Wed, 3 Apr 2013 16:18:27 +0100 Subject: [PATCH] hw/xwin: Fix unused-but-set-variable warning in winIsFakeCtrl_L() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /jhbuild/checkout/xorg/xserver/hw/xwin/winkeybd.c:331:17: error: variable ‘lastMessage’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/winkeybd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/xwin/winkeybd.c b/hw/xwin/winkeybd.c index 27c114c99..e412f2355 100644 --- a/hw/xwin/winkeybd.c +++ b/hw/xwin/winkeybd.c @@ -328,7 +328,6 @@ winIsFakeCtrl_L(UINT message, WPARAM wParam, LPARAM lParam) Bool fReturn; static Bool lastWasControlL = FALSE; - static UINT lastMessage; static LONG lastTime; /* @@ -352,7 +351,6 @@ winIsFakeCtrl_L(UINT message, WPARAM wParam, LPARAM lParam) if (!fReturn) { lastWasControlL = TRUE; - lastMessage = message; lastTime = lTime; } else {