mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Change error message.
This commit is contained in:
parent
9bc9fe6af7
commit
937695bfdc
@ -60,7 +60,7 @@ void StaticAnalyzer::endVisit(FunctionDefinition const&)
|
||||
bool StaticAnalyzer::visit(ExpressionStatement const& _statement)
|
||||
{
|
||||
if (_statement.expression().annotation().isPure)
|
||||
warning(_statement.location(), "Statement has no effects.");
|
||||
warning(_statement.location(), "Statement has no effect.");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -5489,7 +5489,7 @@ BOOST_AUTO_TEST_CASE(bare_revert)
|
||||
}
|
||||
}
|
||||
)";
|
||||
CHECK_WARNING(text, "Statement has no effects.");
|
||||
CHECK_WARNING(text, "Statement has no effect.");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(pure_statement_in_for_loop)
|
||||
@ -5502,7 +5502,7 @@ BOOST_AUTO_TEST_CASE(pure_statement_in_for_loop)
|
||||
}
|
||||
}
|
||||
)";
|
||||
CHECK_WARNING(text, "Statement has no effects.");
|
||||
CHECK_WARNING(text, "Statement has no effect.");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
Loading…
Reference in New Issue
Block a user