Commit 182569bf authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/Keyboard.c: The ret variable is only used later on when compiled with -DTEST.

Amends the following compiler warning: ``` Keyboard.c: In function ‘nxagentKeyboardProc’: Keyboard.c:688:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret; ^ ```
parent 66f88954
...@@ -685,7 +685,9 @@ int nxagentKeyboardProc(DeviceIntPtr pDev, int onoff) ...@@ -685,7 +685,9 @@ int nxagentKeyboardProc(DeviceIntPtr pDev, int onoff)
int free_model = 0, free_layout = 0; int free_model = 0, free_layout = 0;
XkbDescPtr xkb = NULL; XkbDescPtr xkb = NULL;
#ifdef TEST
int ret; int ret;
#endif
switch (onoff) switch (onoff)
{ {
...@@ -842,7 +844,10 @@ XkbError: ...@@ -842,7 +844,10 @@ XkbError:
memmove((char *) defaultKeyboardControl.autoRepeats, memmove((char *) defaultKeyboardControl.autoRepeats,
(char *) values.auto_repeats, sizeof(values.auto_repeats)); (char *) values.auto_repeats, sizeof(values.auto_repeats));
ret = InitKeyboardDeviceStruct((DevicePtr) pDev, &keySyms, modmap, #ifdef TEST
ret =
#endif
InitKeyboardDeviceStruct((DevicePtr) pDev, &keySyms, modmap,
nxagentBell, nxagentChangeKeyboardControl); nxagentBell, nxagentChangeKeyboardControl);
#ifdef TEST #ifdef TEST
......
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