aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-10-15 20:03:56 +0800
committerchriseth <c@ethdev.com>2015-10-15 23:38:42 +0800
commitae5b12f54b43b7793600ad9b2c785fd0f9a5ed9e (patch)
tree3660034116f38d3b5eb3a8376a756fea328cfeb1 /libsolidity
parent029b8194892b6b08ce70075bd66f43f66c40e301 (diff)
downloaddexon-solidity-ae5b12f54b43b7793600ad9b2c785fd0f9a5ed9e.tar.gz
dexon-solidity-ae5b12f54b43b7793600ad9b2c785fd0f9a5ed9e.tar.zst
dexon-solidity-ae5b12f54b43b7793600ad9b2c785fd0f9a5ed9e.zip
Fix compiler warnings.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/LValue.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/LValue.cpp b/libsolidity/LValue.cpp
index 52441836..bc069efd 100644
--- a/libsolidity/LValue.cpp
+++ b/libsolidity/LValue.cpp
@@ -484,15 +484,17 @@ void TupleObject::retrieveValue(SourceLocation const& _location, bool _remove) c
solAssert(initialDepth + m_context.stackHeight() >= initialStack, "");
unsigned depth = initialDepth + m_context.stackHeight() - initialStack;
if (lv->sizeOnStack() > 0)
+ {
if (_remove && depth > lv->sizeOnStack())
CompilerUtils(m_context).moveToStackTop(depth, depth - lv->sizeOnStack());
else if (!_remove && depth > 0)
CompilerUtils(m_context).copyToStackTop(depth, lv->sizeOnStack());
+ }
lv->retrieveValue(_location, true);
}
}
-void TupleObject::storeValue(Type const& _sourceType, SourceLocation const& _location, bool _move) const
+void TupleObject::storeValue(Type const& _sourceType, SourceLocation const& _location, bool) const
{
// values are below the lvalue references
unsigned valuePos = sizeOnStack();