From: Peter Hutterer Date: Mon, 12 Jul 2021 11:09:15 +0000 (+1000) Subject: evdev: silence a clang compiler warning X-Git-Tag: 1.19.901~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a568cfaf0ac8350e3fab08bc121f7d358b29a24;p=platform%2Fupstream%2Flibinput.git evdev: silence a clang compiler warning Signed-off-by:Peter Hutterer --- diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index c0fc5d9..cbd74df 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 860f69d..6d81f58 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 76da5ae..275d8c0 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 */