mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-25 18:28:43 +00:00
Fix compilation warnings for non-multitouch builds
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit f5ede98085)
This commit is contained in:
committed by
Peter Hutterer
parent
8af0e6f1eb
commit
09987eab9a
@@ -1062,7 +1062,9 @@ EvdevProcessEvent(InputInfoPtr pInfo, struct input_event *ev)
|
||||
static void
|
||||
EvdevFreeMasks(EvdevPtr pEvdev)
|
||||
{
|
||||
#ifdef MULTITOUCH
|
||||
int i;
|
||||
#endif
|
||||
|
||||
valuator_mask_free(&pEvdev->vals);
|
||||
valuator_mask_free(&pEvdev->old_vals);
|
||||
@@ -1345,7 +1347,9 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device)
|
||||
|
||||
i = 0;
|
||||
for (axis = ABS_X; i < MAX_VALUATORS && axis <= ABS_MAX; axis++) {
|
||||
#ifdef MULTITOUCH
|
||||
int j;
|
||||
#endif
|
||||
int mapping;
|
||||
pEvdev->axis_map[axis] = -1;
|
||||
if (!EvdevBitIsSet(pEvdev->abs_bitmask, axis) ||
|
||||
|
||||
Reference in New Issue
Block a user