Merge pull request #8013 from ethereum/warnings

Enable more warnings in the build system
This commit is contained in:
chriseth
2020-01-15 18:00:14 +01:00
committed by GitHub
5 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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
{
-1
View File
@@ -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);