hw/xwin: Fix unused-but-set-variable warning in winIsFakeCtrl_L()
/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>
This commit is contained in:
parent
cdb74fe17d
commit
c97fbd39ad
|
@ -328,7 +328,6 @@ winIsFakeCtrl_L(UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
Bool fReturn;
|
Bool fReturn;
|
||||||
|
|
||||||
static Bool lastWasControlL = FALSE;
|
static Bool lastWasControlL = FALSE;
|
||||||
static UINT lastMessage;
|
|
||||||
static LONG lastTime;
|
static LONG lastTime;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -352,7 +351,6 @@ winIsFakeCtrl_L(UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
if (!fReturn) {
|
if (!fReturn) {
|
||||||
lastWasControlL = TRUE;
|
lastWasControlL = TRUE;
|
||||||
lastMessage = message;
|
|
||||||
lastTime = lTime;
|
lastTime = lTime;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue