aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-03-10 22:11:13 +0800
committerchriseth <c@ethdev.com>2015-03-10 22:11:13 +0800
commitd41c51a8106ff20b347d95adf453e58a20d89513 (patch)
treea4b78641a75cc937437c73bb6efb400a0ea01cb1
parent9c82cbeddf1b03cc99660a867de8720d1d174b9c (diff)
downloaddexon-solidity-d41c51a8106ff20b347d95adf453e58a20d89513.tar
dexon-solidity-d41c51a8106ff20b347d95adf453e58a20d89513.tar.gz
dexon-solidity-d41c51a8106ff20b347d95adf453e58a20d89513.tar.bz2
dexon-solidity-d41c51a8106ff20b347d95adf453e58a20d89513.tar.lz
dexon-solidity-d41c51a8106ff20b347d95adf453e58a20d89513.tar.xz
dexon-solidity-d41c51a8106ff20b347d95adf453e58a20d89513.tar.zst
dexon-solidity-d41c51a8106ff20b347d95adf453e58a20d89513.zip
Fixed some checker warnings.
-rw-r--r--Compiler.h4
-rw-r--r--Parser.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/Compiler.h b/Compiler.h
index 76f16f3a..4b1e1b4d 100644
--- a/Compiler.h
+++ b/Compiler.h
@@ -94,8 +94,8 @@ private:
std::vector<eth::AssemblyItem> m_continueTags; ///< tag to jump to for a "continue" statement
eth::AssemblyItem m_returnTag; ///< tag to jump to for a "return" statement
unsigned m_modifierDepth = 0;
- FunctionDefinition const* m_currentFunction;
- unsigned m_stackCleanupForReturn; ///< this number of stack elements need to be removed before jump to m_returnTag
+ FunctionDefinition const* m_currentFunction = nullptr;
+ unsigned m_stackCleanupForReturn = 0; ///< this number of stack elements need to be removed before jump to m_returnTag
// arguments for base constructors, filled in derived-to-base order
std::map<FunctionDefinition const*, std::vector<ASTPointer<Expression>> const*> m_baseArguments;
};
diff --git a/Parser.h b/Parser.h
index 87eb2f8f..cc0b2ca1 100644
--- a/Parser.h
+++ b/Parser.h
@@ -34,6 +34,8 @@ class Scanner;
class Parser
{
public:
+ Parser() {}
+
ASTPointer<SourceUnit> parse(std::shared_ptr<Scanner> const& _scanner);
std::shared_ptr<std::string const> const& getSourceName() const;