mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix warnings, release errors.
This commit is contained in:
parent
ff9331185c
commit
3e57086efe
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user