mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
make it non-fatal for optimized scripts to encounter an empty "for" body
This commit is contained in:
parent
ee28609e74
commit
02cd773c51
1 changed files with 1 additions and 1 deletions
|
@ -624,7 +624,7 @@ StmtPtr ForStmt::DoReduce(Reducer* c)
|
|||
body = body->Reduce(c);
|
||||
|
||||
if ( body->Tag() == STMT_NULL )
|
||||
Error("empty \"for\" body leaves loop variables in indeterminant state");
|
||||
Warn("empty \"for\" body leaves loop variables in indeterminant state");
|
||||
|
||||
if ( red_e_stmt )
|
||||
return TransformMe(make_intrusive<StmtList>(red_e_stmt, this), c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue