From: fennecdjay Date: Wed, 2 Oct 2019 20:07:56 +0000 (+0200) Subject: :shirt: Remove compiler warning X-Git-Tag: nightly~2198^2~170 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=99ec3e0b3871829183c30a7e9fb89a342e54bfb9;p=gwion.git :shirt: Remove compiler warning --- diff --git a/src/lib/vararg.c b/src/lib/vararg.c index eb7358fc..ae5608d1 100644 --- a/src/lib/vararg.c +++ b/src/lib/vararg.c @@ -7,6 +7,7 @@ #include "env.h" #include "type.h" #include "instr.h" +#include "emit.h" #include "object.h" #include "vararg.h" #include "gwion.h" diff --git a/src/parse/check.c b/src/parse/check.c index 28b52d30..f431d206 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -518,6 +518,8 @@ static Func ensure_tmpl(const Env env, const Func_Def fdef, const Exp_Call *exp) const Func func = find_func_match(env, f, exp->args); f->next = next; if(func) { + if(func->value_ref->from->ctx->error) + ERR_O(exp_self(exp)->pos, _("function '%s' is errored"), func->name) SET_FLAG(func, checked | ae_flag_template); return func; }