Re: [PATCH weston 1/2] libinput: Suppress unhandled-case warning

2017-03-15 Thread Peter Hutterer
On Wed, Mar 15, 2017 at 09:23:29AM +, Daniel Stone wrote: > Hey, > > On 14 March 2017 at 23:54, Peter Hutterer wrote: > > On Tue, Mar 14, 2017 at 05:26:50PM +, Daniel Stone wrote: > >> When the wheel tilt source is present, gcc complains that we don't > >> handle all possible enumeration

Re: [PATCH weston 1/2] libinput: Suppress unhandled-case warning

2017-03-15 Thread Daniel Stone
Hey, On 14 March 2017 at 23:54, Peter Hutterer wrote: > On Tue, Mar 14, 2017 at 05:26:50PM +, 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 1/2] libinput: Suppress unhandled-case warning

2017-03-14 Thread Peter Hutterer
On Tue, Mar 14, 2017 at 05:26:50PM +, 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 1/2] libinput: Suppress unhandled-case warning

2017-03-14 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 ---