summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frame-xi2.c2
-rw-r--r--tools/utouch-frame-test-xi2.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/frame-xi2.c b/src/frame-xi2.c
index d6d98a1..4779e11 100644
--- a/src/frame-xi2.c
+++ b/src/frame-xi2.c
@@ -202,8 +202,6 @@ static void init_transform(utouch_frame_handle fh, Display *dpy)
int utouch_frame_init_xi2(utouch_frame_handle fh,
Display *dpy, const XIDeviceInfo *dev)
{
- struct utouch_surface *s = fh->surface;
- XITouchValuatorClassInfo *v;
int event;
int err;
diff --git a/tools/utouch-frame-test-xi2.c b/tools/utouch-frame-test-xi2.c
index 079a6a9..e824649 100644
--- a/tools/utouch-frame-test-xi2.c
+++ b/tools/utouch-frame-test-xi2.c
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
+#include <stdlib.h>
static int xi_opcode;
@@ -157,7 +158,6 @@ static void loop_device(struct frame_test *test)
mask.deviceid = XIAllDevices;
mask.mask_len = XIMaskLen(XI_TouchMotion);
mask.mask = calloc(mask.mask_len, sizeof(char));
- memset(mask.mask, 0, mask.mask_len);
XISetMask(mask.mask, XI_TouchBegin);
XISetMask(mask.mask, XI_TouchMotion);
@@ -166,7 +166,6 @@ static void loop_device(struct frame_test *test)
while (1) {
XEvent ev;
- XIDeviceEvent *event = (void*)&ev;
XGenericEventCookie *cookie = &ev.xcookie;
XNextEvent(test->display, &ev);