From 5a568cfaf0ac8350e3fab08bc121f7d358b29a24 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 12 Jul 2021 21:09:15 +1000 Subject: evdev: silence a clang compiler warning Signed-off-by:Peter Hutterer --- src/evdev-mt-touchpad.c | 1 + src/evdev.c | 1 + src/libinput-util.h | 1 + 3 files changed, 3 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index c0fc5d93..cbd74df0 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -1916,6 +1916,7 @@ tp_handle_state(struct tp_dispatch *tp, tp_apply_rotation(tp->device); } +LIBINPUT_UNUSED static inline void tp_debug_touch_state(struct tp_dispatch *tp, struct evdev_device *device) diff --git a/src/evdev.c b/src/evdev.c index 860f69df..6d81f58f 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1010,6 +1010,7 @@ evdev_read_switch_reliability_prop(struct evdev_device *device) return r; } +LIBINPUT_UNUSED static inline void evdev_print_event(struct evdev_device *device, const struct input_event *e) diff --git a/src/libinput-util.h b/src/libinput-util.h index 76da5aeb..275d8c0b 100644 --- a/src/libinput-util.h +++ b/src/libinput-util.h @@ -65,5 +65,6 @@ } while (0) #define LIBINPUT_EXPORT __attribute__ ((visibility("default"))) +#define LIBINPUT_UNUSED __attribute__ ((unused)) #endif /* LIBINPUT_UTIL_H */ -- cgit v1.2.1