xsetwacom.c: In function ‘keysym_to_keycode’:
xsetwacom.c:964:6: warning: variable ‘group’ set but not used
[-Wunused-but-set-variable]

xsetwacom.c: In function ‘get_actions’:
xsetwacom.c:1747:25: warning: variable ‘last_press’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Peter Hutterer <[email protected]>
---
 tools/xsetwacom.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 91175af..79f60b6 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -961,14 +961,12 @@ static int keysym_to_keycode(Display *dpy, KeySym sym)
 {
        static XkbDescPtr xkb = NULL;
        XkbStateRec state;
-       int group;
        int kc = 0;
 
 
        if (!xkb)
                xkb = XkbGetKeyboard(dpy, XkbAllComponentsMask, XkbUseCoreKbd);
        XkbGetState(dpy, XkbUseCoreKbd, &state);
-       group = state.group;
 
        for (kc = xkb->min_key_code; kc <= xkb->max_key_code; kc++)
        {
@@ -1744,7 +1742,7 @@ static int get_actions(Display *dpy, XDevice *dev,
 
        for (i = 0; i < nitems; i++)
        {
-               static int last_type, last_press;
+               static int last_type;
                unsigned long action = data[i];
                int current_type;
                int detail;
@@ -1788,7 +1786,6 @@ static int get_actions(Display *dpy, XDevice *dev,
                        sprintf(str, "%c%d ", press_str, detail);
                strcat(buff, str);
                last_type = current_type;
-               last_press = is_press;
        }
 
        TRACE("%s\n", buff);
-- 
1.7.4.2


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to