From cec7cd2b395396d9a11a2d0155601406b0b5b5aa Mon Sep 17 00:00:00 2001 From: Ivan Chebykin Date: Fri, 4 May 2018 18:41:51 +0300 Subject: Fix gcc maybe-uninitialized in wlr_cursor apply_output_transform --- types/wlr_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index d8a7fa08..9a31fca2 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -332,7 +332,7 @@ static void handle_pointer_motion(struct wl_listener *listener, void *data) { static void apply_output_transform(double *x, double *y, enum wl_output_transform transform) { - double dx, dy; + double dx = *x, dy = *y; double width = 1.0, height = 1.0; switch (transform) { -- cgit v1.2.3