[PATCH 6/7] xkb: remove unused variable 'names'

Peter Hutterer peter.hutterer at who-t.net
Wed Feb 13 16:24:08 PST 2013


xkb.c: In function '_XkbSetNamesCheck':
xkb.c:3987:18: warning: variable 'names' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 xkb/xkb.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/xkb/xkb.c b/xkb/xkb.c
index 7e51e40..f2bcaee 100644
--- a/xkb/xkb.c
+++ b/xkb/xkb.c
@@ -3984,13 +3984,11 @@ _XkbSetNamesCheck(ClientPtr client, DeviceIntPtr dev,
                   xkbSetNamesReq * stuff, CARD32 *data)
 {
     XkbDescRec *xkb;
-    XkbNamesRec *names;
     CARD32 *tmp;
     Atom bad;
 
     tmp = data;
     xkb = dev->key->xkbInfo->desc;
-    names = xkb->names;
 
     if (stuff->which & XkbKeyTypeNamesMask) {
         int i;
-- 
1.8.1.2



More information about the xorg-devel mailing list