forked from qt-creator/qt-creator
QmlDesigner: Fix unused warning
Change-Id: Ie849bd37ba1d1c502a20885f11cf5ddd35a268e4 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user