aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-07 23:46:15 +0800
committerChristian <c@ethdev.com>2015-01-07 23:46:53 +0800
commit9866caa625d467f5460e272eee5d69761d8d830b (patch)
tree6ea9c1ecd9bd03c2b7e8a241dc73230a0d5100b8 /ExpressionCompiler.h
parenta2375542e6d369da4669ba2e29db08b89a19b17f (diff)
downloaddexon-solidity-9866caa625d467f5460e272eee5d69761d8d830b.tar.gz
dexon-solidity-9866caa625d467f5460e272eee5d69761d8d830b.tar.zst
dexon-solidity-9866caa625d467f5460e272eee5d69761d8d830b.zip
Fix some warnings about uninitialized members.
Diffstat (limited to 'ExpressionCompiler.h')
-rw-r--r--ExpressionCompiler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ExpressionCompiler.h b/ExpressionCompiler.h
index 67b16aac..c0ee4ab4 100644
--- a/ExpressionCompiler.h
+++ b/ExpressionCompiler.h
@@ -146,12 +146,12 @@ private:
private:
CompilerContext* m_context;
- LValueType m_type;
+ LValueType m_type = NONE;
/// If m_type is STACK, this is base stack offset (@see
/// CompilerContext::getBaseStackOffsetOfVariable) of a local variable.
- unsigned m_baseStackOffset;
+ unsigned m_baseStackOffset = 0;
/// Size of the value of this lvalue on the stack.
- unsigned m_stackSize;
+ unsigned m_stackSize = 0;
};
bool m_optimize;