From 812ab2e716dc7c1ac906a206709ce009ae30c45c Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 1 Dec 2021 02:31:45 -0500 Subject: Fix uninitialized variable errors in release mode When using `meson --buildtype=release`, `-Wextra -Werror` is passed. This includes `-Werror=maybe-uninitialized`, which complains about the instances fixed in this commit. --- backend/wayland/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c index c2bac46a..76c25fe5 100644 --- a/backend/wayland/seat.c +++ b/backend/wayland/seat.c @@ -468,7 +468,7 @@ struct wlr_wl_input_device *create_wl_input_device( unsigned int vendor = 0, product = 0; - const char *type_name; + const char *type_name = "unknown"; switch (type) { case WLR_INPUT_DEVICE_KEYBOARD: -- cgit v1.2.3