fix(dialyzer): nowarn_function extra_schema_fields/1

This commit is contained in:
Shawn 2021-07-28 14:30:44 +08:00 committed by turtleDeng
parent e7ced477a9
commit 90b20aae2b
1 changed files with 2 additions and 0 deletions

View File

@ -518,6 +518,8 @@ fields(FieldName) ->
extra_schema_fields(FieldName). extra_schema_fields(FieldName).
-ifndef(EMQX_EXT_SCHEMAS). -ifndef(EMQX_EXT_SCHEMAS).
%% Function extra_schema_fields/1 only terminates with explicit exception
-dialyzer([{nowarn_function, [extra_schema_fields/1]}]).
extra_schema_fields(FieldName) -> error({unknown_field, FieldName}). extra_schema_fields(FieldName) -> error({unknown_field, FieldName}).
-else. -else.
extra_schema_fields(FieldName) -> extra_schema_fields(FieldName) ->