From 3306c433aa6cf9c968ab997a16f9bc7c0788fbcd Mon Sep 17 00:00:00 2001 From: "duna.oh" Date: Tue, 18 Apr 2023 15:12:40 +0900 Subject: [PATCH] e_input: fix build warning about unused function The function '_device_handle_axis()' is only used when LIBINPUT_HAVE_SCROLL_VALUE120 is undefined. Change-Id: I8e1ae2db20074a300342d30f691b7c23d4ca4881 --- src/bin/e_input_evdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/e_input_evdev.c b/src/bin/e_input_evdev.c index 7ef76168b0..5b52b0a4da 100644 --- a/src/bin/e_input_evdev.c +++ b/src/bin/e_input_evdev.c @@ -1028,6 +1028,7 @@ _device_handle_button(struct libinput_device *device, struct libinput_event_poin ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_UP, ev, _e_input_event_mouse_button_cb_free, NULL); } +#if !LIBINPUT_HAVE_SCROLL_VALUE_V120 static int _axis_value_get(struct libinput_event_pointer *pointer_event, enum libinput_pointer_axis axis) { @@ -1194,6 +1195,7 @@ _device_handle_axis(struct libinput_device *device, struct libinput_event_pointe ecore_event_add(ECORE_EVENT_MOUSE_WHEEL, ev, _e_input_event_mouse_wheel_cb_free, NULL); } +#endif #if LIBINPUT_HAVE_SCROLL_VALUE_V120 static int -- 2.34.1