aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis/StaticAnalyzer.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-04-21 17:13:10 +0800
committerchriseth <chris@ethereum.org>2017-04-21 17:36:38 +0800
commit9bc9fe6af7241479fe3099eae235452b054a6f11 (patch)
tree78cfc115c1c71b9bb59b55bc8bb99d25711bbd81 /libsolidity/analysis/StaticAnalyzer.h
parented64c849f57b9aeed1eda4563f0d4340013420ef (diff)
downloaddexon-solidity-9bc9fe6af7241479fe3099eae235452b054a6f11.tar.gz
dexon-solidity-9bc9fe6af7241479fe3099eae235452b054a6f11.tar.zst
dexon-solidity-9bc9fe6af7241479fe3099eae235452b054a6f11.zip
Warn about side-effect free statements.
Diffstat (limited to 'libsolidity/analysis/StaticAnalyzer.h')
-rw-r--r--libsolidity/analysis/StaticAnalyzer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/analysis/StaticAnalyzer.h b/libsolidity/analysis/StaticAnalyzer.h
index 0cb961bd..84342322 100644
--- a/libsolidity/analysis/StaticAnalyzer.h
+++ b/libsolidity/analysis/StaticAnalyzer.h
@@ -60,6 +60,8 @@ private:
virtual bool visit(FunctionDefinition const& _function) override;
virtual void endVisit(FunctionDefinition const& _function) override;
+ virtual bool visit(ExpressionStatement const& _statement) override;
+
virtual bool visit(MemberAccess const& _memberAccess) override;
ErrorList& m_errors;