QmlDesigner: Fix macOS build

Unused variable in various cases

Change-Id: I665c037b21446c4ba4eabb1b73ac5a03b22547e2
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Thomas Hartmann
2023-08-30 12:59:12 +02:00
parent 83ad97aa56
commit 518977daed
3 changed files with 3 additions and 4 deletions

View File

@@ -1057,7 +1057,7 @@ void ConnectionEditorEvaluator::endVisit([[maybe_unused]] QmlJS::AST::CallExpres
d->m_acceptLogArgument = false;
}
void ConnectionEditorEvaluator::endVisit(QmlJS::AST::IfStatement *ifStatement)
void ConnectionEditorEvaluator::endVisit(QmlJS::AST::IfStatement * /*ifStatement*/)
{
if (status() != UnFinished)
return;
@@ -1070,7 +1070,7 @@ void ConnectionEditorEvaluator::endVisit(QmlJS::AST::IfStatement *ifStatement)
}
}
void ConnectionEditorEvaluator::endVisit(QmlJS::AST::StatementList *statementList)
void ConnectionEditorEvaluator::endVisit(QmlJS::AST::StatementList * /*statementList*/)
{
if (status() != UnFinished)
return;

View File

@@ -316,7 +316,6 @@ MatchedStatement &ConnectionEditorStatements::okStatement(
ConnectionEditorStatements::Handler &handler)
{
MatchedStatement statement;
std::visit([statement](auto &test) { return statement; }, handler);
return std::visit(Overload{[](ConnectionEditorStatements::MatchedStatement &var)
-> MatchedStatement & { return var; },

View File

@@ -1425,7 +1425,7 @@ ConditionListModel::ConditionListModel(ConnectionModel *parent)
: m_connectionModel(parent), m_condition(emptyCondition)
{}
int ConditionListModel::rowCount(const QModelIndex &parent) const
int ConditionListModel::rowCount(const QModelIndex & /*parent*/) const
{
return m_tokens.size();
}