e_input: fix build warning about unused function 51/291551/1
authorduna.oh <duna.oh@samsung.com>
Tue, 18 Apr 2023 06:12:40 +0000 (15:12 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 18 Apr 2023 07:24:42 +0000 (16:24 +0900)
The function '_device_handle_axis()' is only used
when LIBINPUT_HAVE_SCROLL_VALUE120 is undefined.

Change-Id: I8e1ae2db20074a300342d30f691b7c23d4ca4881

src/bin/e_input_evdev.c

index 7ef7616..5b52b0a 100644 (file)
@@ -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