diff options
author | chriseth <c@ethdev.com> | 2015-03-10 22:11:13 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-03-10 22:11:13 +0800 |
commit | d41c51a8106ff20b347d95adf453e58a20d89513 (patch) | |
tree | a4b78641a75cc937437c73bb6efb400a0ea01cb1 | |
parent | 9c82cbeddf1b03cc99660a867de8720d1d174b9c (diff) | |
download | dexon-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.h | 4 | ||||
-rw-r--r-- | Parser.h | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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; }; @@ -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; |