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:
parent
a66dab9273
commit
ca1434ff1e
@ -2712,8 +2712,8 @@ meta_display_request_pad_osd (MetaDisplay *display,
|
|||||||
MetaInputMapper *input_mapper;
|
MetaInputMapper *input_mapper;
|
||||||
const gchar *layout_path = NULL;
|
const gchar *layout_path = NULL;
|
||||||
ClutterActor *osd;
|
ClutterActor *osd;
|
||||||
MetaLogicalMonitor *logical_monitor;
|
MetaLogicalMonitor *logical_monitor = NULL;
|
||||||
GSettings *settings;
|
GSettings *settings = NULL;
|
||||||
#ifdef HAVE_LIBWACOM
|
#ifdef HAVE_LIBWACOM
|
||||||
WacomDevice *wacom_device;
|
WacomDevice *wacom_device;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user