tablet: fix a compiler warning for an unused variable

../src/evdev-tablet.c: In function ‘tablet_init’:
../src/evdev-tablet.c:2921:26: warning: unused variable ‘li’ [-Wunused-variable]
 2921 |         struct libinput *li = evdev_libinput_context(device);
      |                          ^~

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1495>
This commit is contained in:
Peter Hutterer 2026-06-12 08:13:38 +10:00
parent a487280e09
commit 0c73217378

View file

@ -2918,12 +2918,12 @@ static int
tablet_init(struct tablet_dispatch *tablet, struct evdev_device *device)
{
static unsigned int tablet_ids = 0;
struct libinput *li = evdev_libinput_context(device);
struct libevdev *evdev = device->evdev;
enum libinput_tablet_tool_axis axis;
int rc = -1;
WacomDevice *wacom = NULL;
#ifdef HAVE_LIBWACOM
struct libinput *li = evdev_libinput_context(device);
WacomDeviceDatabase *db = libinput_libwacom_ref(li);
if (db) {
char event_path[64];