forked from qt-creator/qt-creator
Avoid warning on empty expressions
For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -717,8 +717,8 @@ ImportDependencies::ImportElements ImportDependencies::candidateImports(
|
||||
QList<DependencyInfo::ConstPtr> ImportDependencies::createDependencyInfos(
|
||||
const ImportKey &mainDoc, const ViewerContext &vContext) const
|
||||
{
|
||||
Q_UNUSED(mainDoc);
|
||||
Q_UNUSED(vContext);
|
||||
Q_UNUSED(mainDoc)
|
||||
Q_UNUSED(vContext)
|
||||
QList<DependencyInfo::ConstPtr> res;
|
||||
QTC_CHECK(false);
|
||||
return res;
|
||||
@@ -897,8 +897,8 @@ public:
|
||||
const Export &e,
|
||||
const CoreImport &cI) const
|
||||
{
|
||||
Q_UNUSED(m);
|
||||
Q_UNUSED(cI);
|
||||
Q_UNUSED(m)
|
||||
Q_UNUSED(cI)
|
||||
imports.insert(e.exportName.flatKey());
|
||||
return true;
|
||||
}
|
||||
@@ -931,7 +931,7 @@ void ImportDependencies::checkConsistency() const
|
||||
foreach (const Export &e, m_coreImports.value(s).possibleExports)
|
||||
if (e.exportName == j.key())
|
||||
found = true;
|
||||
Q_ASSERT(found); Q_UNUSED(found);
|
||||
Q_ASSERT(found); Q_UNUSED(found)
|
||||
}
|
||||
}
|
||||
QMapIterator<QString,CoreImport> i(m_coreImports);
|
||||
|
||||
Reference in New Issue
Block a user