25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Hide false-positive warnings about mod_delegation Type atom and NS binary

This commit is contained in:
Badlop 2020-05-07 22:29:54 +02:00
parent c990704418
commit 64c09c20eb

View File

@ -301,6 +301,10 @@ is_exported(Mod, Fun, Arity, Exports) ->
catch _:{badkey, _} -> false catch _:{badkey, _} -> false
end. end.
warn_type({var, _, 'Type'}, #state{module = mod_delegation}, "not an atom") ->
ok;
warn_type({var, _, 'NS'}, #state{module = mod_delegation}, "not a binary") ->
ok;
warn_type(Form, State, Warning) -> warn_type(Form, State, Warning) ->
log("~s:~p: Warning: " ++ Warning ++ ": ~s~n", log("~s:~p: Warning: " ++ Warning ++ ": ~s~n",
[State#state.file, [State#state.file,