eolian: stop build with EOLIAN_WARN_FUNC_DUPLICATES > 1

This commit is contained in:
Daniel Kolesa 2018-02-12 18:56:38 +01:00
parent 563dba9d60
commit 09bcf9e5fd
1 changed files with 2 additions and 0 deletions

View File

@ -341,6 +341,8 @@ _validate_function(const Eolian_Unit *src, Eolian_Function *func, Eina_Hash *nha
ofunc->base.line, ofunc->base.column);
if ((!func->is_beta && !ofunc->is_beta) || (_duplicates_warn > 1))
_obj_error(&func->base, buf);
if (_duplicates_warn > 1)
return EINA_FALSE;
}
/* if already validated, no need to perform the other checks...