Re: [PATCH weston v2] libinput: Suppress unhandled-case warning

2017-03-17 Thread Daniel Stone
Hi, On 16 March 2017 at 22:52, Peter Hutterer wrote: > On Thu, Mar 16, 2017 at 10:01:05AM +, Daniel Stone wrote: >> 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_

Re: [PATCH weston v2] libinput: Suppress unhandled-case warning

2017-03-16 Thread Peter Hutterer
On Thu, Mar 16, 2017 at 10:01:05AM +, Daniel Stone wrote: > 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 d

[PATCH weston v2] libinput: Suppress unhandled-case warning

2017-03-16 Thread Daniel Stone
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 ---