diff --git a/src/abg-hash.cc b/src/abg-hash.cc index 17168773..01261dd5 100644 --- a/src/abg-hash.cc +++ b/src/abg-hash.cc @@ -613,9 +613,6 @@ class_decl::hash::operator()(const class_decl& t) const assert(!t.get_is_declaration_only()); std::tr1::hash hash_string; -#if 0 - type_base::dynamic_hash hash_type; -#endif scope_type_decl::hash hash_scope_type; class_decl::base_spec::hash hash_base; var_decl::hash hash_data_member; diff --git a/src/abg-ir.cc b/src/abg-ir.cc index 83b1c85c..f769d59e 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -10404,12 +10404,12 @@ equals(const class_decl& l, const class_decl& r, change_kind* k) RETURN(false); } - for(class_decl::base_specs::const_iterator - b0 = l.get_base_specifiers().begin(), - b1 = r.get_base_specifiers().begin(); - (b0 != l.get_base_specifiers().end() + for (class_decl::base_specs::const_iterator + b0 = l.get_base_specifiers().begin(), + b1 = r.get_base_specifiers().begin(); + (b0 != l.get_base_specifiers().end() && b1 != r.get_base_specifiers().end()); - ++b0, ++b1) + ++b0, ++b1) if (*b0 != *b1) { result = false;