mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-06 14:10:12 +01:00
tablet: fix compiler warning when -Dlibwacom=false
Fix the warning generated: [82/243] Compiling C object libinput.so.10.13.0.p/src_evdev-tablet.c.o ../src/evdev-tablet.c:938:1: warning: unused function 'tool_set_bits_from_libwacom' [-Wunused-function] tool_set_bits_from_libwacom(const struct tablet_dispatch *tablet, ^ 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
49227bf2de
commit
d84fc4ad11
1 changed files with 3 additions and 3 deletions
|
|
@ -934,13 +934,12 @@ copy_button_cap(const struct tablet_dispatch *tablet,
|
|||
set_bit(tool->buttons, button);
|
||||
}
|
||||
|
||||
#if HAVE_LIBWACOM
|
||||
static inline int
|
||||
tool_set_bits_from_libwacom(const struct tablet_dispatch *tablet,
|
||||
struct libinput_tablet_tool *tool)
|
||||
{
|
||||
int rc = 1;
|
||||
|
||||
#if HAVE_LIBWACOM
|
||||
WacomDeviceDatabase *db;
|
||||
const WacomStylus *s = NULL;
|
||||
int code;
|
||||
|
|
@ -997,9 +996,10 @@ tool_set_bits_from_libwacom(const struct tablet_dispatch *tablet,
|
|||
copy_axis_cap(tablet, tool, LIBINPUT_TABLET_TOOL_AXIS_PRESSURE);
|
||||
|
||||
rc = 0;
|
||||
#endif
|
||||
|
||||
return rc;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
tool_set_bits(const struct tablet_dispatch *tablet,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue