eolian: Warn less on duplicate beta APIs

The check was only done on one of the two functions, resulting in some
unwanted warnings.

EOLIAN_WARN_FUNC_DUPLICATES=1 will show non-beta warnings.
EOLIAN_WARN_FUNC_DUPLICATES=2 will still show all warnings.
This commit is contained in:
Jean-Philippe Andre 2017-11-29 20:20:49 +09:00
parent bd5b76508b
commit aef05c26d6
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ _validate_function(Eolian_Function *func, Eina_Hash *nhash)
"%sfunction '%s' redefined (originally at %s:%d:%d)",
func->is_beta ? "beta " : "", func->name, ofunc->base.file,
ofunc->base.line, ofunc->base.column);
if (!func->is_beta || (_duplicates_warn > 1))
if ((!func->is_beta && !ofunc->is_beta) || (_duplicates_warn > 1))
_obj_error(&func->base, buf);
}