mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-04-14 10:54:17 +00:00
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 <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
5d27c689bf
commit
112263280f
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user