From f6e10902e176ed33750cbffb2f24d408617fc4d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 18 Apr 2022 10:13:12 +0200 Subject: [PATCH] :bug: Fix build --- src/parse/scan1.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/parse/scan1.c b/src/parse/scan1.c index 9e61a337..2a31cf94 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -674,14 +674,6 @@ ANN static m_bool _scan1_func_def(const Env env, const Func_Def fdef) { ERR_B(fdef->base->pos, "file scope function can't be abstract"); const bool global = GET_FLAG(fdef->base, global); const m_uint scope = !global ? env->scope->depth : env_push_global(env); - if(fbflag(fdef->base, fbflag_locale) && fdef->base->args) { - Arg_List args = fdef->base->args; - for(uint32_t i = 0; i < args->len; i++) { - const Arg *arg = mp_vector_at(args, Arg, i); - if(!arg->exp) - ERR_B(arg->td->pos, _("all arguments in a locale must have a default value")) - } - } if (fdef->base->td) CHECK_BB(env_storage(env, fdef->base->flag, fdef->base->td->pos)); CHECK_BB(scan1_fdef_defined(env, fdef)); -- 2.43.0