mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Fixes from review, post-rebase
This commit is contained in:
parent
9f05fe5bfa
commit
5ca0bb79c8
15 changed files with 59 additions and 30 deletions
|
@ -589,8 +589,8 @@ 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");
|
||||
if ( options.no_unused_warnings && options.analysis_options.usage_issues > 0 )
|
||||
reporter->FatalError("-u incompatible with --no-unused-warnings");
|
||||
|
||||
#ifdef DEBUG
|
||||
if ( options.debug_log_streams )
|
||||
|
@ -929,7 +929,7 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
if ( options.parse_only )
|
||||
{
|
||||
if ( analysis_options.usage_issues > 0 )
|
||||
analyze_scripts(options.no_usage_warnings);
|
||||
analyze_scripts(options.no_unused_warnings);
|
||||
|
||||
early_shutdown();
|
||||
exit(reporter->Errors() != 0);
|
||||
|
@ -937,7 +937,7 @@ SetupResult setup(int argc, char** argv, Options* zopts)
|
|||
|
||||
auto init_stmts = stmts ? analyze_global_stmts(stmts) : nullptr;
|
||||
|
||||
analyze_scripts(options.no_usage_warnings);
|
||||
analyze_scripts(options.no_unused_warnings);
|
||||
|
||||
if ( analysis_options.report_recursive )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue