mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Build fix for MacOS.
This commit is contained in:
parent
42c0009205
commit
31dc588b55
@ -83,7 +83,7 @@ bool TypeChecker::visit(ContractDefinition const& _contract)
|
|||||||
{
|
{
|
||||||
auto err = make_shared<DeclarationError>();
|
auto err = make_shared<DeclarationError>();
|
||||||
*err << errinfo_comment("Only one fallback function is allowed.");
|
*err << errinfo_comment("Only one fallback function is allowed.");
|
||||||
m_errors.push_back(move(err));
|
m_errors.push_back(err);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -142,7 +142,7 @@ void TypeChecker::checkContractDuplicateFunctions(ContractDefinition const& _con
|
|||||||
errinfo_sourceLocation(functions[_contract.name()].front()->location()) <<
|
errinfo_sourceLocation(functions[_contract.name()].front()->location()) <<
|
||||||
errinfo_comment("More than one constructor defined.") <<
|
errinfo_comment("More than one constructor defined.") <<
|
||||||
errinfo_secondarySourceLocation(ssl);
|
errinfo_secondarySourceLocation(ssl);
|
||||||
m_errors.push_back(move(err));
|
m_errors.push_back(err);
|
||||||
}
|
}
|
||||||
for (auto const& it: functions)
|
for (auto const& it: functions)
|
||||||
{
|
{
|
||||||
@ -157,7 +157,7 @@ void TypeChecker::checkContractDuplicateFunctions(ContractDefinition const& _con
|
|||||||
errinfo_comment("Function with same name and arguments defined twice.") <<
|
errinfo_comment("Function with same name and arguments defined twice.") <<
|
||||||
errinfo_secondarySourceLocation(SecondarySourceLocation().append(
|
errinfo_secondarySourceLocation(SecondarySourceLocation().append(
|
||||||
"Other declaration is here:", overloads[i]->location()));
|
"Other declaration is here:", overloads[i]->location()));
|
||||||
m_errors.push_back(move(err));
|
m_errors.push_back(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1133,7 +1133,7 @@ void TypeChecker::typeError(ASTNode const& _node, string const& _description)
|
|||||||
errinfo_sourceLocation(_node.location()) <<
|
errinfo_sourceLocation(_node.location()) <<
|
||||||
errinfo_comment(_description);
|
errinfo_comment(_description);
|
||||||
|
|
||||||
m_errors.push_back(move(err));
|
m_errors.push_back(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TypeChecker::fatalTypeError(ASTNode const& _node, string const& _description)
|
void TypeChecker::fatalTypeError(ASTNode const& _node, string const& _description)
|
||||||
|
Loading…
Reference in New Issue
Block a user