From a0d286741c1b2013c17d0c78b62be57b5402e22c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 4 Aug 2025 16:35:57 +1000 Subject: [PATCH] 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: --- src/evdev-mt-touchpad-buttons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev-mt-touchpad-buttons.c b/src/evdev-mt-touchpad-buttons.c index 467fbf36..ca8f207a 100644 --- a/src/evdev-mt-touchpad-buttons.c +++ b/src/evdev-mt-touchpad-buttons.c @@ -1230,7 +1230,7 @@ static int tp_post_clickpadbutton_buttons(struct tp_dispatch *tp, uint64_t time) { 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 { AREA = 0x01, LEFT = 0x02, MIDDLE = 0x04, RIGHT = 0x08 }; bool want_left_handed = true;