From: Jonas Ådahl Date: Sun, 13 Jul 2014 22:15:07 +0000 (+0200) Subject: tools/event-gui: Silence a couple of compiler warnings X-Git-Tag: 0.5.0~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60ac2eb8130eb04e452f661c7aee68fe4d64caff;p=platform%2Fupstream%2Flibinput.git tools/event-gui: Silence a couple of compiler warnings Signed-off-by: Jonas Ådahl --- diff --git a/tools/event-gui.c b/tools/event-gui.c index 0aa9129..b4a6506 100644 --- a/tools/event-gui.c +++ b/tools/event-gui.c @@ -257,7 +257,7 @@ handle_event_touch(struct libinput_event *ev, struct window *w) struct touch *touch; double x, y; - if (slot == -1 || slot >= ARRAY_LENGTH(w->touches)) + if (slot == -1 || slot >= (int) ARRAY_LENGTH(w->touches)) return; touch = &w->touches[slot]; @@ -436,7 +436,7 @@ close_restricted(int fd, void *user_data) close(fd); } -const static struct libinput_interface interface = { +static const struct libinput_interface interface = { .open_restricted = open_restricted, .close_restricted = close_restricted, };