Re: [PATCH libinput 9/9] touchpad: Always assign iterator in tp_for_each_touch macro

2014-04-10 Thread Jonas Ådahl
On Thu, Apr 10, 2014 at 03:55:29PM +1000, Peter Hutterer wrote: On Wed, Apr 09, 2014 at 09:02:16PM +0200, Jonas Ådahl wrote: Rewrite the tp_for_each_touch macro to always assign the iterator. Practically it was already always assigning as ntouches is always more than 0, but this way we

[PATCH libinput 9/9] touchpad: Always assign iterator in tp_for_each_touch macro

2014-04-09 Thread Jonas Ådahl
Rewrite the tp_for_each_touch macro to always assign the iterator. Practically it was already always assigning as ntouches is always more than 0, but this way we avoid a compiler warning by not relying on an external variable for initiating the iterator. Signed-off-by: Jonas Ådahl

Re: [PATCH libinput 9/9] touchpad: Always assign iterator in tp_for_each_touch macro

2014-04-09 Thread Peter Hutterer
On Wed, Apr 09, 2014 at 09:02:16PM +0200, Jonas Ådahl wrote: Rewrite the tp_for_each_touch macro to always assign the iterator. Practically it was already always assigning as ntouches is always more than 0, but this way we avoid a compiler warning by not relying on an external variable for