mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
updates for usage issues: support for -uu, maybe/definitely distinctions
This commit is contained in:
parent
6726eaa0a9
commit
f89ed411cf
4 changed files with 17 additions and 8 deletions
|
@ -413,7 +413,7 @@ bool GenIDDefs::IsAggr(const Expr* e) const
|
|||
|
||||
void GenIDDefs::CheckVarUsage(const Expr* e, const ID* id)
|
||||
{
|
||||
if ( analysis_options.usage_issues == 0 || id->IsGlobal() ||
|
||||
if ( analysis_options.usage_issues != 1 || id->IsGlobal() ||
|
||||
suppress_usage > 0 )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue