From 64c09c20ebbeb3511cf372386c3140286d1edd8a Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 7 May 2020 22:29:54 +0200 Subject: [PATCH] Hide false-positive warnings about mod_delegation Type atom and NS binary --- tools/hook_deps.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/hook_deps.sh b/tools/hook_deps.sh index 1df963d75..00aa044a7 100755 --- a/tools/hook_deps.sh +++ b/tools/hook_deps.sh @@ -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,