aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/src/xref_base.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-05-10 19:40:34 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-05-10 19:52:13 +0200
commit3e0c7b96e0fd50f0cd913eef30065764f75ae8e3 (patch)
tree1b47c074324d1b3f254b650eac34304dd1bfbd50 /lib/tools/src/xref_base.erl
parent116afe8f0e6d5638760c08597f38820d397cc534 (diff)
downloadotp-3e0c7b96e0fd50f0cd913eef30065764f75ae8e3.tar.gz
otp-3e0c7b96e0fd50f0cd913eef30065764f75ae8e3.tar.bz2
otp-3e0c7b96e0fd50f0cd913eef30065764f75ae8e3.zip
xref: Fix unmatched return warnings
Diffstat (limited to 'lib/tools/src/xref_base.erl')
-rw-r--r--lib/tools/src/xref_base.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tools/src/xref_base.erl b/lib/tools/src/xref_base.erl
index 70eb107781..4322943c59 100644
--- a/lib/tools/src/xref_base.erl
+++ b/lib/tools/src/xref_base.erl
@@ -696,7 +696,7 @@ do_add_module({Dir, Basename}, AppName, Builtins, Verbose, Warnings, State) ->
File = filename:join(Dir, Basename),
{ok, M, Bad, NewState} =
do_add_module1(Dir, File, AppName, Builtins, Verbose, Warnings, State),
- filter(fun({Tag,B}) -> warnings(Warnings, Tag, [[File,B]]) end, Bad),
+ _ = filter(fun({Tag,B}) -> warnings(Warnings, Tag, [[File,B]]) end, Bad),
{ok, M, NewState}.
do_add_module1(Dir, File, AppName, Builtins, Verbose, Warnings, State) ->
@@ -1727,7 +1727,7 @@ pack(T) ->
NT = pack1(T),
%% true = T =:= NT,
%% io:format("erasing ~p elements...~n", [length(erase())]),
- erase(), % wasting heap (and time)...
+ _ = erase(), % wasting heap (and time)...
foreach(fun({K,V}) -> put(K, V) end, PD),
NT.