From e8d555da113c3c930ed4e7435190d07ab5136e0d Mon Sep 17 00:00:00 2001 From: Neil Horne Date: Sat, 28 Oct 2023 21:02:38 +1100 Subject: [PATCH] chore(cpn): Fix Ubuntu compiler warnings (#4257) --- companion/src/firmwares/edgetx/yaml_rawswitch.cpp | 1 - companion/src/simulation/debugoutput.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/companion/src/firmwares/edgetx/yaml_rawswitch.cpp b/companion/src/firmwares/edgetx/yaml_rawswitch.cpp index 885051ab9..c5072ce7f 100644 --- a/companion/src/firmwares/edgetx/yaml_rawswitch.cpp +++ b/companion/src/firmwares/edgetx/yaml_rawswitch.cpp @@ -24,7 +24,6 @@ std::string YamlRawSwitchEncode(const RawSwitch& rhs) { std::string sw_str; - char c = 'A'; int32_t sval = rhs.index; if (rhs.index < 0) { sval = -sval; diff --git a/companion/src/simulation/debugoutput.cpp b/companion/src/simulation/debugoutput.cpp index d4c268ee7..af0688d4c 100644 --- a/companion/src/simulation/debugoutput.cpp +++ b/companion/src/simulation/debugoutput.cpp @@ -300,9 +300,6 @@ QRegularExpression DebugOutput::makeRegEx(const QString & input, bool * isExlusi QString output(input); QRegularExpression re; QRegularExpression::PatternOptions reFlags = QRegularExpression::DontCaptureOption; -#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)) - reFlags |= QRegularExpression::OptimizeOnFirstUsageOption; -#endif if (input.left(1) == "!") { output.remove(0, 1);