mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 08:18:02 +02:00
tools/event-gui: Silence a couple of compiler warnings
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
85c4500494
commit
60ac2eb813
1 changed files with 2 additions and 2 deletions
|
|
@ -257,7 +257,7 @@ handle_event_touch(struct libinput_event *ev, struct window *w)
|
||||||
struct touch *touch;
|
struct touch *touch;
|
||||||
double x, y;
|
double x, y;
|
||||||
|
|
||||||
if (slot == -1 || slot >= ARRAY_LENGTH(w->touches))
|
if (slot == -1 || slot >= (int) ARRAY_LENGTH(w->touches))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
touch = &w->touches[slot];
|
touch = &w->touches[slot];
|
||||||
|
|
@ -436,7 +436,7 @@ close_restricted(int fd, void *user_data)
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
const static struct libinput_interface interface = {
|
static const struct libinput_interface interface = {
|
||||||
.open_restricted = open_restricted,
|
.open_restricted = open_restricted,
|
||||||
.close_restricted = close_restricted,
|
.close_restricted = close_restricted,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue