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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue