mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
simple error propagation fix: don't complain about "unused" values that themselves are due to errors
This commit is contained in:
parent
c8be7ec795
commit
9cb506ad97
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ ValPtr PrintStmt::DoExec(std::vector<ValPtr> vals,
|
|||
|
||||
ExprStmt::ExprStmt(ExprPtr arg_e) : Stmt(STMT_EXPR), e(std::move(arg_e))
|
||||
{
|
||||
if ( e && e->IsPure() )
|
||||
if ( e && e->IsPure() && e->GetType()->Tag() != TYPE_ERROR )
|
||||
Warn("expression value ignored");
|
||||
|
||||
SetLocationInfo(e->GetLocationInfo());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue