From 0c73217378fc9dbeb6cfafa84a26a160562bfee8 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 12 Jun 2026 08:13:38 +1000 Subject: [PATCH] tablet: fix a compiler warning for an unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../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: --- src/evdev-tablet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index b4919d2e..0624e621 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -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];