From 5f6c08b7e012c2ba99dfa8416913e782708747fb Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 5 May 2021 22:00:50 -0400 Subject: [PATCH] Avoid partial struct instantiation. --- OSBindings/Qt/keyboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OSBindings/Qt/keyboard.cpp b/OSBindings/Qt/keyboard.cpp index 45210e3fd..48fc00c4b 100644 --- a/OSBindings/Qt/keyboard.cpp +++ b/OSBindings/Qt/keyboard.cpp @@ -43,7 +43,7 @@ KeyboardMapper::KeyboardMapper() { #ifdef HAS_X11 struct DesiredMapping { - KeySym source; + KeySym source = 0; Inputs::Keyboard::Key destination; }; @@ -115,7 +115,7 @@ KeyboardMapper::KeyboardMapper() { {XK_Help, Key::Help}, - {0} + {} }; // Extra level of nonsense here: