Error messages shouldn't raise warnings about unused expressions by themselves.
This commit is contained in:
parent
09e0e74124
commit
dfba8d77ca
1 changed files with 2 additions and 0 deletions
|
@ -1301,6 +1301,7 @@ static void Primary (ExprDesc* E)
|
|||
/* Statement block */
|
||||
NextToken ();
|
||||
Error ("Expression expected");
|
||||
E->Flags |= E_EVAL_MAYBE_UNUSED;
|
||||
hie0 (E);
|
||||
if (CurTok.Tok == TOK_RCURLY) {
|
||||
NextToken ();
|
||||
|
@ -1332,6 +1333,7 @@ static void Primary (ExprDesc* E)
|
|||
}
|
||||
} else {
|
||||
Error ("Expression expected");
|
||||
E->Flags |= E_EVAL_MAYBE_UNUSED;
|
||||
NextToken ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue