From e13dd305657a5425980a2cbb30096e509af5f827 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Fri, 11 Mar 2022 14:16:35 -0800 Subject: [PATCH] tweak for comparing redundant-but-complex attributes --- src/Attr.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Attr.cc b/src/Attr.cc index b0d2947a00..22e1ef35d8 100644 --- a/src/Attr.cc +++ b/src/Attr.cc @@ -192,6 +192,9 @@ void Attributes::AddAttr(AttrPtr attr, bool is_redef) { auto acceptable_duplicate_attr = [](const AttrPtr& attr, const AttrPtr& existing) -> bool { + if ( attr == existing ) + return true; + AttrTag new_tag = attr->Tag(); if ( new_tag == ATTR_DEPRECATED )