mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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.
This commit is contained in:
parent
611b9ca843
commit
812ab2e716
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue