Commit fc393174 authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/Keyboard.c: Don't declare and set XkbDescPtr xkb if not used later on.

Amends the following compiler warning: ``` Keyboard.c: In function ‘nxagentNotifyKeyboardChanges’: Keyboard.c:1211:16: warning: variable ‘xkb’ set but not used [-Wunused-but-set-variable] XkbDescPtr xkb; ^ ```
parent eb682184
...@@ -1208,11 +1208,9 @@ void nxagentNotifyKeyboardChanges(int oldMinKeycode, int oldMaxKeycode) ...@@ -1208,11 +1208,9 @@ void nxagentNotifyKeyboardChanges(int oldMinKeycode, int oldMaxKeycode)
if (!noXkbExtension) if (!noXkbExtension)
{ {
DeviceIntPtr dev; DeviceIntPtr dev;
XkbDescPtr xkb;
xkbNewKeyboardNotify nkn; xkbNewKeyboardNotify nkn;
dev = inputInfo.keyboard; dev = inputInfo.keyboard;
xkb = dev -> key -> xkbInfo -> desc;
memset(&nkn, 0, sizeof(xkbNewKeyboardNotify)); memset(&nkn, 0, sizeof(xkbNewKeyboardNotify));
nkn.deviceID = nkn.oldDeviceID = dev -> id; nkn.deviceID = nkn.oldDeviceID = dev -> id;
......
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