aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-05-27 16:20:03 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-06-15 10:36:36 +1000
commit5069e053354ad6adfcbb08c962bff93b607dec3d (patch)
tree979628cad153388df18b556fb516140e8a9e3abb
parentPrint abs axes ranges on verbosity 6. (diff)
downloadxf86-input-evdev-5069e053354ad6adfcbb08c962bff93b607dec3d.tar.gz
xf86-input-evdev-5069e053354ad6adfcbb08c962bff93b607dec3d.tar.bz2
xf86-input-evdev-5069e053354ad6adfcbb08c962bff93b607dec3d.zip
Remove unused misc_label and val
evdev.c: In function 'EvdevInitAxesLabels': evdev.c:2192:11: warning: variable 'misc_label' set but not used [-Wunused-but-set-variable] obsolete with 880ad1e19afd83ac115948b67d4049e16cb12df0 emuWheel.c: In function 'EvdevWheelEmuPreInit': emuWheel.c:252:10: warning: variable 'val' set but not used [-Wunused-but-set-variable] obsolete with b0737bdbd1f6e601eb4984b6f4cb49279190984c Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r--src/emuWheel.c4
-rw-r--r--src/evdev.c3
2 files changed, 0 insertions, 7 deletions
diff --git a/src/emuWheel.c b/src/emuWheel.c
index 75df34d..ae894fa 100644
--- a/src/emuWheel.c
+++ b/src/emuWheel.c
@@ -249,14 +249,10 @@ void
EvdevWheelEmuPreInit(InputInfoPtr pInfo)
{
EvdevPtr pEvdev = (EvdevPtr)pInfo->private;
- char val[4];
int wheelButton;
int inertia;
int timeout;
- val[0] = 0;
- val[1] = 0;
-
if (xf86SetBoolOption(pInfo->options, "EmulateWheel", FALSE)) {
pEvdev->emulateWheel.enabled = TRUE;
} else
diff --git a/src/evdev.c b/src/evdev.c
index 8b01fb1..5a38f97 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2189,18 +2189,15 @@ static void EvdevInitAxesLabels(EvdevPtr pEvdev, int natoms, Atom *atoms)
int axis;
char **labels;
int labels_len = 0;
- char *misc_label;
if (pEvdev->flags & EVDEV_ABSOLUTE_EVENTS)
{
labels = abs_labels;
labels_len = ArrayLength(abs_labels);
- misc_label = AXIS_LABEL_PROP_ABS_MISC;
} else if ((pEvdev->flags & EVDEV_RELATIVE_EVENTS))
{
labels = rel_labels;
labels_len = ArrayLength(rel_labels);
- misc_label = AXIS_LABEL_PROP_REL_MISC;
}
memset(atoms, 0, natoms * sizeof(Atom));