Commit 66ce6198 authored by Peter Hutterer's avatar Peter Hutterer Committed by Povilas Kanapickas
Browse files

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's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent f6b8f8c0
Pipeline #298429 passed with stages
in 6 minutes and 10 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment