tweak for comparing redundant-but-complex attributes

This commit is contained in:
Vern Paxson 2022-03-11 14:16:35 -08:00 committed by Tim Wojtulewicz
parent 095ab178f3
commit e13dd30565

View file

@ -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 )