From: fennecdjay Date: Tue, 19 Jul 2022 10:04:41 +0000 (+0200) Subject: :bug: Add a check for effect list X-Git-Tag: nightly~264^2~89 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5be9adba81a25045a41d747cca4e6acf78a76dfd;p=gwion.git :bug: Add a check for effect list --- diff --git a/src/parse/check.c b/src/parse/check.c index b2097a0a..baf35d0d 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -2067,7 +2067,7 @@ ANN m_bool check_ast(const Env env, Ast *ast) { Section * section = mp_vector_at(a, Section, i); CHECK_BB(check_section(env, section)); } - check_unhandled(env); + if(vector_size(&env->scope->effects)) check_unhandled(env); if(env->context->extend) check_extend(env, env->context->extend); return GW_OK; }