From 112263280fb5eed872736d86ed06e7b5c78a89c7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 16 Apr 2025 12:30:51 +0200 Subject: [PATCH] fix warning on unhandled values > /builds/metux/xf86-input-libinput/_builddir/../src/xf86libinput.c:2617:9: warning: enumeration value 'LIBINPUT_EVENT_TABLET_PAD_KEY' not handled in switch [-Wswitch] > 2617 | switch (type) { > | ^~~~~~ > /builds/metux/xf86-input-libinput/_builddir/../src/xf86libinput.c:2617:9: warning: enumeration value 'LIBINPUT_EVENT_GESTURE_HOLD_BEGIN' not handled in switch [-Wswitch] > /builds/metux/xf86-input-libinput/_builddir/../src/xf86libinput.c:2617:9: warning: enumeration value 'LIBINPUT_EVENT_GESTURE_HOLD_END' not handled in switch [-Wswitch] Signed-off-by: Enrico Weigelt, metux IT consult --- src/xf86libinput.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/xf86libinput.c b/src/xf86libinput.c index 52d38e0..9ab8775 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -2741,6 +2741,20 @@ xf86libinput_handle_event(struct libinput_event *event) break; case LIBINPUT_EVENT_SWITCH_TOGGLE: break; + + /* new libinput events we don't handle yet */ +#ifdef LIBINPUT_EVENT_GESTURE_HOLD_BEGIN + case LIBINPUT_EVENT_GESTURE_HOLD_BEGIN: + break; +#endif +#ifdef LIBINPUT_EVENT_GESTURE_HOLD_END + case LIBINPUT_EVENT_GESTURE_HOLD_END: + break; +#endif +#ifdef LIBINPUT_EVENT_TABLET_PAD_KEY + case LIBINPUT_EVENT_TABLET_PAD_KEY: + break; +#endif } out: