mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Fix warning with attribute string lookup
(cherry picked from commit b639f1426f
)
This commit is contained in:
parent
9ae61eab0c
commit
c0f12b5cd0
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ const char* attr_name(AttrTag t)
|
||||||
"&ordered",
|
"&ordered",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if ( int(t) >= 0 && int(t) < NUM_ATTRS )
|
||||||
return attr_names[int(t)];
|
return attr_names[int(t)];
|
||||||
|
else
|
||||||
|
return "<unknown>";
|
||||||
}
|
}
|
||||||
|
|
||||||
Attr::Attr(AttrTag t, ExprPtr e) : expr(std::move(e))
|
Attr::Attr(AttrTag t, ExprPtr e) : expr(std::move(e))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue