mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Fix a bunch of variable shadowing issues from LGTM
This commit is contained in:
parent
f8eb2d9241
commit
e8dbfc1cb0
10 changed files with 28 additions and 27 deletions
|
@ -256,8 +256,8 @@ ExprListStmt::ExprListStmt(StmtTag t, ListExprPtr arg_l) : Stmt(t), l(std::move(
|
|||
const ExprPList& e = l->Exprs();
|
||||
for ( const auto& expr : e )
|
||||
{
|
||||
const auto& t = expr->GetType();
|
||||
if ( ! t || t->Tag() == TYPE_VOID )
|
||||
const auto& et = expr->GetType();
|
||||
if ( ! et || et->Tag() == TYPE_VOID )
|
||||
Error("value of type void illegal");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue