From 8c2d47f86d46783a1526ddaecf8787b18b727fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Molinari?= Date: Fri, 23 Feb 2024 15:44:13 +0100 Subject: [PATCH] input: Fix release/debugoptimized build warning with gcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix ‘old_sx’ and ‘old_sy’ used uninitialized. Signed-off-by: Loïc Molinari --- libweston/input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libweston/input.c b/libweston/input.c index cb6585fe..34262393 100644 --- a/libweston/input.c +++ b/libweston/input.c @@ -572,6 +572,9 @@ weston_pointer_send_motion(struct weston_pointer *pointer, surf_pos = weston_coord_global_to_surface(pointer->focus, pos); pointer->sx = wl_fixed_from_double(surf_pos.c.x); pointer->sy = wl_fixed_from_double(surf_pos.c.y); + } else { + old_sx = -1000000; + old_sy = -1000000; } weston_pointer_move(pointer, event);