From 471c38628fc9c204ceb3809f2afdc4c308a73b75 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 17 Apr 2017 10:22:21 +0200 Subject: [PATCH] Fix key variable not initialised (#4790) --- radio/src/targets/simu/opentxsimulator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radio/src/targets/simu/opentxsimulator.cpp b/radio/src/targets/simu/opentxsimulator.cpp index e7260e39c..97ca3efc0 100644 --- a/radio/src/targets/simu/opentxsimulator.cpp +++ b/radio/src/targets/simu/opentxsimulator.cpp @@ -284,6 +284,9 @@ void OpenTxSimulator::rotaryEncoderEvent(int steps) key = KEY_MINUS; else if (steps < 0) key = KEY_PLUS; + else + // Should not happen but Clang complains that key is unset otherwise + return; setKey(key, 1); #if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))