Commit 4933ca5e authored by Daniel Stone's avatar Daniel Stone

libinput: Suppress unhandled-case warning

When the wheel tilt source is present, gcc complains that we don't
handle all possible enumeration values. We already ensure this cannot
happen in its only caller (handle_pointer_axis), but gcc doesn't
recognise this. Give it a default value to quiet the warning.
Signed-off-by: Daniel Stone's avatarDaniel Stone <>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <>
parent 300bc6ef
......@@ -191,6 +191,8 @@ normalize_scroll(struct libinput_event_pointer *pointer_event,
value = libinput_event_pointer_get_axis_value(pointer_event,
assert(!"unhandled event source in normalize_scroll");
return value;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment