mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
&is_set attribute to suppress -u possibly-used-but-not-set warnings
This commit is contained in:
parent
28bb39b548
commit
ca33a15626
4 changed files with 9 additions and 2 deletions
|
@ -22,6 +22,7 @@ const char* attr_name(AttrTag t)
|
|||
"&group", "&log", "&error_handler", "&type_column",
|
||||
"(&tracked)", "&on_change", "&broker_store",
|
||||
"&broker_allow_complex_type", "&backend", "&deprecated",
|
||||
"&is_set",
|
||||
};
|
||||
|
||||
return attr_names[int(t)];
|
||||
|
@ -333,6 +334,7 @@ void Attributes::CheckAttr(Attr* a)
|
|||
switch ( a->Tag() ) {
|
||||
case ATTR_DEPRECATED:
|
||||
case ATTR_REDEF:
|
||||
case ATTR_IS_SET:
|
||||
break;
|
||||
|
||||
case ATTR_OPTIONAL:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue