mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 14:40:26 +01:00
test: fix compiler warning when -Dlibwacom=false
Fix the warning generated: [129/243] Compiling C object libinput-test-suite.p/test_test-touchpad.c.o ../test/test-touchpad.c:2679:1: warning: unused function 'touchpad_has_rotation' [-Wunused-function] touchpad_has_rotation(struct libevdev *evdev) ^ When building with Clang v15 and without libwacom: $ CC=clang CXX=clang++ meson builddir -Dlibwacom=false Signed-off-by: José Expósito <jose.exposito89@gmail.com>
This commit is contained in:
parent
d84fc4ad11
commit
3726de351d
1 changed files with 2 additions and 0 deletions
|
|
@ -2675,11 +2675,13 @@ START_TEST(touchpad_left_handed_clickpad_delayed)
|
|||
}
|
||||
END_TEST
|
||||
|
||||
#if HAVE_LIBWACOM
|
||||
static inline bool
|
||||
touchpad_has_rotation(struct libevdev *evdev)
|
||||
{
|
||||
return libevdev_get_id_vendor(evdev) == VENDOR_ID_WACOM;
|
||||
}
|
||||
#endif /* HAVE_LIBWACOM */
|
||||
|
||||
START_TEST(touchpad_left_handed_rotation)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue