mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
--no-usage-warnings flag to suppress analysis
This commit is contained in:
parent
763b448aef
commit
d9479c0502
7 changed files with 29 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek/ID.h"
|
||||
|
@ -18,6 +17,7 @@
|
|||
#include "zeek/Val.h"
|
||||
#include "zeek/module_util.h"
|
||||
#include "zeek/script_opt/IDOptInfo.h"
|
||||
#include "zeek/script_opt/UsageAnalyzer.h"
|
||||
#include "zeek/zeekygen/IdentifierInfo.h"
|
||||
#include "zeek/zeekygen/Manager.h"
|
||||
#include "zeek/zeekygen/ScriptInfo.h"
|
||||
|
@ -167,6 +167,9 @@ void ID::SetVal(ValPtr v)
|
|||
handler = new EventHandler(name);
|
||||
handler->SetFunc(func);
|
||||
event_registry->Register(handler);
|
||||
|
||||
if ( ! IsExport() )
|
||||
register_new_event({NewRef{}, this});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue