xkb: silence a compiler warning
xkb.c: In function ‘ProcXkbSetMap’: xkb.c:2747:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 2747 | DeviceIntPtr master = GetMaster(dev, MASTER_KEYBOARD); Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f6b8f8c071
commit
66ce61983d
|
@ -2716,7 +2716,7 @@ _XkbSetMap(ClientPtr client, DeviceIntPtr dev, xkbSetMapReq * req, char *values)
|
|||
int
|
||||
ProcXkbSetMap(ClientPtr client)
|
||||
{
|
||||
DeviceIntPtr dev;
|
||||
DeviceIntPtr dev, master;
|
||||
char *tmp;
|
||||
int rc;
|
||||
|
||||
|
@ -2744,7 +2744,7 @@ ProcXkbSetMap(ClientPtr client)
|
|||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
DeviceIntPtr master = GetMaster(dev, MASTER_KEYBOARD);
|
||||
master = GetMaster(dev, MASTER_KEYBOARD);
|
||||
|
||||
if (stuff->deviceSpec == XkbUseCoreKbd) {
|
||||
DeviceIntPtr other;
|
||||
|
|
Loading…
Reference in New Issue