evdev: silence a clang compiler warning
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 12 Jul 2021 11:09:15 +0000 (21:09 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 22 Dec 2021 05:07:56 +0000 (15:07 +1000)
Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net>

src/evdev-mt-touchpad.c
src/evdev.c
src/libinput-util.h

index c0fc5d9..cbd74df 100644 (file)
@@ -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)
index 860f69d..6d81f58 100644 (file)
@@ -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)
index 76da5ae..275d8c0 100644 (file)
@@ -65,5 +65,6 @@
        } while (0)
 
 #define LIBINPUT_EXPORT __attribute__ ((visibility("default")))
+#define LIBINPUT_UNUSED __attribute__ ((unused))
 
 #endif /* LIBINPUT_UTIL_H */