QmlDesigner: Fix unused warning

Change-Id: Ie849bd37ba1d1c502a20885f11cf5ddd35a268e4
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Aleksei German
2023-06-01 16:15:35 +02:00
parent 1655f1f622
commit 94b5b09586

View File

@@ -128,7 +128,7 @@ void MetaInfoPrivate::parseItemLibraryDescriptions(const ExternalDependenciesInt
Internal::MetaInfoReader reader(*m_q); Internal::MetaInfoReader reader(*m_q);
try { try {
reader.readMetaInfoFile(path.toString()); reader.readMetaInfoFile(path.toString());
} catch (const InvalidMetaInfoException &e) { } catch ([[maybe_unused]] const InvalidMetaInfoException &e) {
#ifndef UNIT_TESTS #ifndef UNIT_TESTS
qWarning() << e.description(); qWarning() << e.description();
const QString errorMessage = path.toString() + QLatin1Char('\n') + QLatin1Char('\n') const QString errorMessage = path.toString() + QLatin1Char('\n') + QLatin1Char('\n')