mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 09:10:04 +01:00
touchpad: fix a clang-tidy warning
../src/evdev-mt-touchpad-buttons.c:1233:16: warning: Value stored to 'button' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
1233 | evdev_usage_t button = evdev_usage_from_uint32_t(0);
| ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1292>
This commit is contained in:
parent
5495511485
commit
a0d286741c
1 changed files with 1 additions and 1 deletions
|
|
@ -1230,7 +1230,7 @@ static int
|
||||||
tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time)
|
tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time)
|
||||||
{
|
{
|
||||||
uint32_t current, old, is_top;
|
uint32_t current, old, is_top;
|
||||||
evdev_usage_t button = evdev_usage_from_uint32_t(0);
|
evdev_usage_t button;
|
||||||
enum libinput_button_state state;
|
enum libinput_button_state state;
|
||||||
enum { AREA = 0x01, LEFT = 0x02, MIDDLE = 0x04, RIGHT = 0x08 };
|
enum { AREA = 0x01, LEFT = 0x02, MIDDLE = 0x04, RIGHT = 0x08 };
|
||||||
bool want_left_handed = true;
|
bool want_left_handed = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue