diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-07-12 21:09:15 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-12-22 15:07:56 +1000 |
commit | 5a568cfaf0ac8350e3fab08bc121f7d358b29a24 (patch) | |
tree | acb5228fee125069098e8eba434d5104f0b4ccdb | |
parent | 57a592e2df06e159901e0dd1162a6e99d350294f (diff) | |
download | libinput-5a568cfaf0ac8350e3fab08bc121f7d358b29a24.tar.gz |
evdev: silence a clang compiler warning
Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/evdev-mt-touchpad.c | 1 | ||||
-rw-r--r-- | src/evdev.c | 1 | ||||
-rw-r--r-- | src/libinput-util.h | 1 |
3 files changed, 3 insertions, 0 deletions
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 */ |