Change error message.

This commit is contained in:
chriseth 2017-04-21 15:04:03 +02:00
parent 9bc9fe6af7
commit 937695bfdc
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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()