diff --git a/src/cc65/expr.c b/src/cc65/expr.c index 01bebf18e..a63214f49 100644 --- a/src/cc65/expr.c +++ b/src/cc65/expr.c @@ -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 (); } }