mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
suppress complaints about unused functions/events/hooks
This commit is contained in:
parent
0cd6cb5470
commit
76bf845ec8
1 changed files with 3 additions and 0 deletions
|
@ -507,6 +507,9 @@ void CPP_GlobalInit::Generate(InitsManager* im, std::vector<void*>& /* inits_vec
|
|||
|
||||
if ( attrs >= 0 )
|
||||
global->SetAttrs(im->Attributes(attrs));
|
||||
|
||||
if ( t->Tag() == TYPE_FUNC )
|
||||
global->AddAttr(make_intrusive<Attr>(ATTR_IS_USED));
|
||||
}
|
||||
|
||||
size_t generate_indices_set(int* inits, std::vector<std::vector<int>>& indices_set) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue