mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-06-12 11:18:27 +02:00
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:
parent
a487280e09
commit
0c73217378
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue