From: Jacek Caban jacek@codeweavers.com
--- dlls/jscript/cc_parser.y | 4 +++- dlls/jscript/parser.y | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/cc_parser.y b/dlls/jscript/cc_parser.y index 46354f479ee..0f6d4316c28 100644 --- a/dlls/jscript/cc_parser.y +++ b/dlls/jscript/cc_parser.y @@ -144,7 +144,9 @@ static int cc_parser_lex(void *lval, parser_ctx_t *ctx) /* FIXME: Implement missing expressions. */
CCExpr - : CCUnaryExpression { ctx->ccval = $1; YYACCEPT; } + : CCUnaryExpression { ctx->ccval = $1; + (void)cc_parser_nerrs; /* avoid unused variable warning */ + YYACCEPT; }
CCUnaryExpression : tCCValue { $$ = $1; } diff --git a/dlls/jscript/parser.y b/dlls/jscript/parser.y index 156913bacf2..949d9131b80 100644 --- a/dlls/jscript/parser.y +++ b/dlls/jscript/parser.y @@ -251,7 +251,8 @@ static expression_t *new_prop_and_value_expression(parser_ctx_t*,property_list_t
/* ECMA-262 10th Edition 15.1 */ Script - : ScriptBody HtmlComment { ctx->source = $1 ? $1->head : NULL; } + : ScriptBody HtmlComment { ctx->source = $1 ? $1->head : NULL; + (void)parser_nerrs; /* avoid unused variable warning */ }
/* ECMA-262 10th Edition 15.1 */ ScriptBody