McuSupport: Fix compiler warnings

- override missing for mock methods
- remove unused variable

Change-Id: If703b60dece417fc7dc004d67966f2b6b8281990
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2022-05-11 11:19:46 +02:00
committed by Piotr Mućko
parent 7ee0da5107
commit b3dfcfd3b7
2 changed files with 2 additions and 3 deletions

View File

@@ -39,10 +39,10 @@ public:
MOCK_METHOD(Utils::FilePath, MOCK_METHOD(Utils::FilePath,
getPath, getPath,
(const QString &, QSettings::Scope, const Utils::FilePath &), (const QString &, QSettings::Scope, const Utils::FilePath &),
(const)); (const, override));
MOCK_METHOD(bool, MOCK_METHOD(bool,
write, write,
(const QString &, const Utils::FilePath &, const Utils::FilePath &), (const QString &, const Utils::FilePath &, const Utils::FilePath &),
(const)); (const, override));
}; //class SettingsHandler }; //class SettingsHandler
} // namespace McuSupport::Internal } // namespace McuSupport::Internal

View File

@@ -106,7 +106,6 @@ const char unsupported[]{"unsupported"};
const char vendor[]{"target_vendor"}; const char vendor[]{"target_vendor"};
const QString settingsPrefix = QLatin1String(Constants::SETTINGS_GROUP) + '/' const QString settingsPrefix = QLatin1String(Constants::SETTINGS_GROUP) + '/'
+ QLatin1String(Constants::SETTINGS_KEY_PACKAGE_PREFIX); + QLatin1String(Constants::SETTINGS_KEY_PACKAGE_PREFIX);
const char qmlToCppSuffixPath[]{"bin/qmltocpp"};
const QString unsupportedToolchainFilePath = QString{qtForMcuSdkPath} const QString unsupportedToolchainFilePath = QString{qtForMcuSdkPath}
+ "/lib/cmake/Qul/toolchain/unsupported.cmake"; + "/lib/cmake/Qul/toolchain/unsupported.cmake";