!ast_istype(increment, ast_call) &&
!ast_istype(increment, ast_binstore))
{
- if (parsewarning(parser, WARN_EFFECTLESS_STATEMENT, "statement has no effect"))
+ if (genwarning(ast_ctx(increment), WARN_EFFECTLESS_STATEMENT, "statement has no effect"))
goto onerr;
}
}
!ast_istype(exp, ast_call) &&
!ast_istype(exp, ast_binstore))
{
- if (parsewarning(parser, WARN_EFFECTLESS_STATEMENT, "statement has no effect"))
+ if (genwarning(ast_ctx(exp), WARN_EFFECTLESS_STATEMENT, "statement has no effect"))
return false;
}
return true;