Fix warnings, release errors.

This commit is contained in:
Gav Wood 2014-11-18 17:49:31 +01:00
parent ff9331185c
commit 3e57086efe
2 changed files with 2 additions and 1 deletions

View File

@ -211,6 +211,7 @@ bool ReferencesResolver::visit(Return& _return)
bool ReferencesResolver::visit(Mapping& _mapping) bool ReferencesResolver::visit(Mapping& _mapping)
{ {
(void)_mapping;
return true; return true;
} }

View File

@ -267,7 +267,7 @@ u256 StructType::getStorageOffsetOfMember(unsigned _index) const
{ {
//@todo cache member offset? //@todo cache member offset?
u256 offset; u256 offset;
vector<ASTPointer<VariableDeclaration>> const& members = m_struct.getMembers(); // vector<ASTPointer<VariableDeclaration>> const& members = m_struct.getMembers();
for (unsigned index = 0; index < _index; ++index) for (unsigned index = 0; index < _index; ++index)
offset += getMemberByIndex(index).getType()->getStorageSize(); offset += getMemberByIndex(index).getType()->getStorageSize();
return offset; return offset;