mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-08 03:30:14 +01:00
litest-alps-semi-mt: Fix compiler warnings
This fixes the following (false positive) compiler warnings: litest-alps-semi-mt.c: In function 'alps_touch_move': litest-alps-semi-mt.c:163:3: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized] send_abs_mt_xy(d, r, b); ^ litest-alps-semi-mt.c:163:3: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized] litest-alps-semi-mt.c: In function 'alps_touch_down': litest-alps-semi-mt.c:127:3: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized] send_abs_mt_xy(d, r, b); ^ litest-alps-semi-mt.c:127:3: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
94c59ef201
commit
0647574c46
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ static void
|
|||
alps_touch_down(struct litest_device *d, unsigned int slot, double x, double y)
|
||||
{
|
||||
struct alps *alps = d->private;
|
||||
double t, l, r, b; /* top, left, right, bottom */
|
||||
double t, l, r = 0, b = 0; /* top, left, right, bottom */
|
||||
|
||||
if (d->ntouches_down > 2 || slot > 1)
|
||||
return;
|
||||
|
|
@ -137,7 +137,7 @@ static void
|
|||
alps_touch_move(struct litest_device *d, unsigned int slot, double x, double y)
|
||||
{
|
||||
struct alps *alps = d->private;
|
||||
double t, l, r, b; /* top, left, right, bottom */
|
||||
double t, l, r = 0, b = 0; /* top, left, right, bottom */
|
||||
|
||||
if (d->ntouches_down > 2 || slot > 1)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue