mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +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
|
@ -589,6 +589,9 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
plugin_mgr = new plugin::Manager();
|
||||
fragment_mgr = new detail::FragmentManager();
|
||||
|
||||
if ( options.no_usage_warnings && options.analysis_options.usage_issues > 0 )
|
||||
reporter->FatalError("-u incompatible with --no-usage-warnings");
|
||||
|
||||
#ifdef DEBUG
|
||||
if ( options.debug_log_streams )
|
||||
{
|
||||
|
@ -926,7 +929,7 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
if ( options.parse_only )
|
||||
{
|
||||
if ( analysis_options.usage_issues > 0 )
|
||||
analyze_scripts();
|
||||
analyze_scripts(options.no_usage_warnings);
|
||||
|
||||
early_shutdown();
|
||||
exit(reporter->Errors() != 0);
|
||||
|
@ -934,7 +937,7 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
|
||||
auto init_stmts = stmts ? analyze_global_stmts(stmts) : nullptr;
|
||||
|
||||
analyze_scripts();
|
||||
analyze_scripts(options.no_usage_warnings);
|
||||
|
||||
if ( analysis_options.report_recursive )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue