mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
activate &is_used
This commit is contained in:
parent
f82d443225
commit
86709c5992
3 changed files with 1 additions and 3 deletions
|
@ -174,7 +174,7 @@ bool UseDefs::CheckIfUnused(const Stmt* s, const ID* id, bool report)
|
|||
{
|
||||
if ( report && analysis_options.usage_issues > 0 &&
|
||||
! rc->IsTemporary(id) && ! rc->IsConstantVar(id) &&
|
||||
! rc->IsNewLocal(id) /* && ! id->GetAttr(ATTR_IS_USED) */ )
|
||||
! rc->IsNewLocal(id) && ! id->GetAttr(ATTR_IS_USED) )
|
||||
reporter->Warning("%s assignment unused: %s",
|
||||
id->Name(), obj_desc(s).c_str());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue