diff --git a/plugins/robots/checker/twoDModelRunner/reporter.cpp b/plugins/robots/checker/twoDModelRunner/reporter.cpp index 0c431f8047..838c7623fd 100644 --- a/plugins/robots/checker/twoDModelRunner/reporter.cpp +++ b/plugins/robots/checker/twoDModelRunner/reporter.cpp @@ -120,11 +120,15 @@ void Reporter::reportMessages() } QString Reporter::levelToString(const Level level) const { + // GCC 10.3.1 in AltLinux has problems understanding enums + // Thus we need this redundant code with a temporary variable + QString tmp; switch (level) { - case Level::information: return "info"; - case Level::error: return "error"; - case Level::log: return "log"; + case Level::information: tmp = "info"; + case Level::error: tmp = "error"; + case Level::log: tmp = "log"; } + return tmp; } QJsonValue Reporter::variantToJson(const QVariant &value) const