aboutsummaryrefslogtreecommitdiffstats
path: root/LValue.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-02-26 20:19:34 +0800
committerGav Wood <i@gavwood.com>2015-02-26 20:19:34 +0800
commita5b4f18dd7291e403237061d5f9660db0299601d (patch)
tree0d2655f2aacd35ba321df263cfe0ae18354a5073 /LValue.cpp
parent66b6860eb88c027244abd75393f59b6b68268f6e (diff)
downloaddexon-solidity-a5b4f18dd7291e403237061d5f9660db0299601d.tar.gz
dexon-solidity-a5b4f18dd7291e403237061d5f9660db0299601d.tar.zst
dexon-solidity-a5b4f18dd7291e403237061d5f9660db0299601d.zip
Fix warnings.
Diffstat (limited to 'LValue.cpp')
-rw-r--r--LValue.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/LValue.cpp b/LValue.cpp
index 8b9bd53b..db59c41a 100644
--- a/LValue.cpp
+++ b/LValue.cpp
@@ -40,6 +40,7 @@ StackVariable::StackVariable(CompilerContext& _compilerContext, Declaration cons
void StackVariable::retrieveValue(SourceLocation const& _location, bool _remove) const
{
+ (void)_remove;
unsigned stackPos = m_context.baseToCurrentStackOffset(m_baseStackOffset);
if (stackPos >= 15) //@todo correct this by fetching earlier or moving to memory
BOOST_THROW_EXCEPTION(CompilerError()
@@ -50,6 +51,7 @@ void StackVariable::retrieveValue(SourceLocation const& _location, bool _remove)
void StackVariable::storeValue(Type const& _sourceType, SourceLocation const& _location, bool _move) const
{
+ (void)_sourceType;
unsigned stackDiff = m_context.baseToCurrentStackOffset(m_baseStackOffset) - m_size + 1;
if (stackDiff > 16)
BOOST_THROW_EXCEPTION(CompilerError()
@@ -188,6 +190,7 @@ void StorageItem::storeValue(Type const& _sourceType, SourceLocation const& _loc
void StorageItem::setToZero(SourceLocation const& _location) const
{
+ (void)_location;
if (m_dataType->getCategory() == Type::Category::Array)
CompilerUtils(m_context).clearByteArray(dynamic_cast<ArrayType const&>(*m_dataType));
else if (m_dataType->getCategory() == Type::Category::Struct)