1
0
Fork 0

display: Fix a -Wmaybe-uninitialized warning

Depending on whether the input mapper was found, these variables could
indeed be used uninitialised, so this is a true positive warning.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3770>
This commit is contained in:
Philip Withnall 2024-05-23 11:48:43 +01:00 committed by Marge Bot
parent a66dab9273
commit ca1434ff1e

View file

@ -2712,8 +2712,8 @@ meta_display_request_pad_osd (MetaDisplay *display,
MetaInputMapper *input_mapper;
const gchar *layout_path = NULL;
ClutterActor *osd;
MetaLogicalMonitor *logical_monitor;
GSettings *settings;
MetaLogicalMonitor *logical_monitor = NULL;
GSettings *settings = NULL;
#ifdef HAVE_LIBWACOM
WacomDevice *wacom_device;
#endif