From 3e57086efe95a79373259c2f64f65aec3a0c72c8 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 18 Nov 2014 17:49:31 +0100 Subject: [PATCH] Fix warnings, release errors. --- NameAndTypeResolver.cpp | 1 + Types.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp index 5bc406855..aa7726582 100644 --- a/NameAndTypeResolver.cpp +++ b/NameAndTypeResolver.cpp @@ -211,6 +211,7 @@ bool ReferencesResolver::visit(Return& _return) bool ReferencesResolver::visit(Mapping& _mapping) { + (void)_mapping; return true; } diff --git a/Types.cpp b/Types.cpp index 63bad5d61..e24435976 100644 --- a/Types.cpp +++ b/Types.cpp @@ -267,7 +267,7 @@ u256 StructType::getStorageOffsetOfMember(unsigned _index) const { //@todo cache member offset? u256 offset; - vector> const& members = m_struct.getMembers(); +// vector> const& members = m_struct.getMembers(); for (unsigned index = 0; index < _index; ++index) offset += getMemberByIndex(index).getType()->getStorageSize(); return offset;