mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8013 from ethereum/warnings
Enable more warnings in the build system
This commit is contained in:
@@ -2354,7 +2354,7 @@ string EnumType::canonicalName() const
|
||||
size_t EnumType::numberOfMembers() const
|
||||
{
|
||||
return m_enum.members().size();
|
||||
};
|
||||
}
|
||||
|
||||
BoolResult EnumType::isExplicitlyConvertibleTo(Type const& _convertTo) const
|
||||
{
|
||||
|
||||
@@ -340,7 +340,6 @@ void StorageItem::storeValue(Type const& _sourceType, SourceLocation const& _loc
|
||||
{
|
||||
solAssert(sourceType.location() == DataLocation::Memory, "");
|
||||
// stack layout: source_ref target_ref
|
||||
TypePointer sourceMemberType = sourceType.memberType(member.name);
|
||||
m_context << sourceType.memoryOffsetOfMember(member.name);
|
||||
m_context << Instruction::DUP3 << Instruction::ADD;
|
||||
MemoryItem(m_context, *sourceMemberType).retrieveValue(_location, true);
|
||||
|
||||
Reference in New Issue
Block a user