diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-10-09 11:27:06 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-10-10 08:05:28 +1000 |
commit | 4f062c8c0d705d78029a61d97aadd9aaa1c64758 (patch) | |
tree | dd106c0b555d4310ffa5ae0c16b640565ec3dae3 | |
parent | 7e72c8e5bb32dea24cf37a492b44ab586d8b0bf4 (diff) |
evdev: fix a coverity warning
'rc' is possibly unused
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/evdev-middle-button.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/evdev-middle-button.c b/src/evdev-middle-button.c index 039fcaff..8c0685c3 100644 --- a/src/evdev-middle-button.c +++ b/src/evdev-middle-button.c @@ -497,7 +497,7 @@ evdev_middlebutton_handle_event(struct evdev_device *device, uint64_t time, enum evdev_middlebutton_event event) { - int rc; + int rc = 0; enum evdev_middlebutton_state current; current = device->middlebutton.state; @@ -545,6 +545,11 @@ evdev_middlebutton_handle_event(struct evdev_device *device, time, event); break; + default: + evdev_log_bug_libinput(device, + "Invalid middle button state %d\n", + current); + break; } evdev_log_debug(device, |