hw/xwin: Fix unused-but-set-variable warning in winIsFakeCtrl_L()
authorJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 3 Apr 2013 15:18:27 +0000 (16:18 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 2 May 2013 14:43:14 +0000 (15:43 +0100)
/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 <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
hw/xwin/winkeybd.c

index 27c114c..e412f23 100644 (file)
@@ -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 {