mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
tweak for comparing redundant-but-complex attributes
This commit is contained in:
parent
095ab178f3
commit
e13dd30565
1 changed files with 3 additions and 0 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue