dmx: warning fix
dmxinputinit.c: At top level: dmxinputinit.c:135:29: warning: ‘DMXCommonOth’ defined but not used DMXCommonOth is actually mentioned in a #if 0 block, so delete it and the block that references it. If anyone needs it, git remembers. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
c1fe0b155d
commit
ffd323b7c0
|
@ -132,14 +132,6 @@ static DMXLocalInputInfoRec DMXConsoleKbd = {
|
||||||
NULL, dmxCommonKbdCtrl, dmxCommonKbdBell
|
NULL, dmxCommonKbdCtrl, dmxCommonKbdBell
|
||||||
};
|
};
|
||||||
|
|
||||||
static DMXLocalInputInfoRec DMXCommonOth = {
|
|
||||||
"common-oth", DMX_LOCAL_OTHER, DMX_LOCAL_TYPE_COMMON, 1,
|
|
||||||
dmxCommonCopyPrivate, NULL,
|
|
||||||
NULL, NULL, NULL, dmxCommonOthGetInfo,
|
|
||||||
dmxCommonOthOn, dmxCommonOthOff
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
static DMXLocalInputInfoRec DMXLocalDevices[] = {
|
static DMXLocalInputInfoRec DMXLocalDevices[] = {
|
||||||
/* Dummy drivers that can compile on any OS */
|
/* Dummy drivers that can compile on any OS */
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
@ -897,29 +889,6 @@ static void dmxInputScanForExtensions(DMXInputInfo *dmxInput, int doXI)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#if 0
|
|
||||||
case IsXExtensionDevice:
|
|
||||||
case IsXExtensionKeyboard:
|
|
||||||
case IsXExtensionPointer:
|
|
||||||
if (doXI) {
|
|
||||||
if (!dmxInput->numDevs) {
|
|
||||||
dmxLog(dmxWarning,
|
|
||||||
"Cannot use remote (%s) XInput devices if"
|
|
||||||
" not also using core devices\n",
|
|
||||||
dmxInput->name);
|
|
||||||
} else {
|
|
||||||
dmxLocal = dmxInputCopyLocal(dmxInput,
|
|
||||||
&DMXCommonOth);
|
|
||||||
dmxLocal->isCore = FALSE;
|
|
||||||
dmxLocal->sendsCore = FALSE;
|
|
||||||
dmxLocal->deviceId = devices[i].id;
|
|
||||||
dmxLocal->deviceName = (devices[i].name
|
|
||||||
? strdup(devices[i].name)
|
|
||||||
: NULL);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
XFreeDeviceList(devices);
|
XFreeDeviceList(devices);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user