avoid var declarations after statements (C89 warning)

This commit is contained in:
Stefan Schippers 2020-09-22 21:12:09 +02:00
parent 5e98241df1
commit 5186d3b92c
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,6 @@ int callback(int event, int mx, int my, KeySym key,
unsigned short sel;
static int capslock = 0;
static int numlock = 0;
state &=~Mod2Mask; /* 20170511 filter out NumLock status */
#ifndef __unix__
short cstate = GetKeyState(VK_CAPITAL);
short nstate = GetKeyState(VK_NUMLOCK);
@ -123,6 +122,7 @@ int callback(int event, int mx, int my, KeySym key,
numlock = 0;
}
#endif
state &=~Mod2Mask; /* 20170511 filter out NumLock status */
if(semaphore)
{
if(debug_var>=2)