diff options
author | chriseth <chris@ethereum.org> | 2017-04-21 21:04:03 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-04-21 21:04:03 +0800 |
commit | 937695bfdc76a7c0c8b828c26121e7dd0c641acf (patch) | |
tree | ba9c11259be1eb366cba7ff0baa62265d8529e55 | |
parent | 9bc9fe6af7241479fe3099eae235452b054a6f11 (diff) | |
download | dexon-solidity-937695bfdc76a7c0c8b828c26121e7dd0c641acf.tar.gz dexon-solidity-937695bfdc76a7c0c8b828c26121e7dd0c641acf.tar.zst dexon-solidity-937695bfdc76a7c0c8b828c26121e7dd0c641acf.zip |
Change error message.
-rw-r--r-- | libsolidity/analysis/StaticAnalyzer.cpp | 2 | ||||
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/analysis/StaticAnalyzer.cpp b/libsolidity/analysis/StaticAnalyzer.cpp index df7f6e88..190d2420 100644 --- a/libsolidity/analysis/StaticAnalyzer.cpp +++ b/libsolidity/analysis/StaticAnalyzer.cpp @@ -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; } diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index b3aa899d..9126806c 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -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() |