]> Nishi Git Mirror - gwion.git/commitdiff
:shirt: Remove compiler warning
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 2 Oct 2019 20:07:56 +0000 (22:07 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 2 Oct 2019 20:07:56 +0000 (22:07 +0200)
src/lib/vararg.c
src/parse/check.c

index eb7358fc0f8d467dc4d14872d8315bf044d2f6c1..ae5608d19b1db9572f9e33c104af2f23123bee1a 100644 (file)
@@ -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"
index 28b52d30237feb304c09a72400f25f44e4996b54..f431d20660c2eae26e08231bcdb3bc15606ec349 100644 (file)
@@ -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;
     }