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
1 changed files with 4 additions and 0 deletions

View File

@ -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,