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:
parent
c990704418
commit
64c09c20eb
@ -301,6 +301,10 @@ is_exported(Mod, Fun, Arity, Exports) ->
|
||||
catch _:{badkey, _} -> false
|
||||
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) ->
|
||||
log("~s:~p: Warning: " ++ Warning ++ ": ~s~n",
|
||||
[State#state.file,
|
||||
|
Loading…
Reference in New Issue
Block a user