aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_dataflow.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2012-09-20 16:36:32 +0200
committerHans Bolinder <[email protected]>2012-09-24 09:17:39 +0200
commitffe582b55910863462673163f984030ff13b34b7 (patch)
treeea94949f814c8792387ec758159267bb020d50ac /lib/dialyzer/src/dialyzer_dataflow.erl
parent7571553c9679cbc6a8066ddb54556a4794e9754a (diff)
downloadotp-ffe582b55910863462673163f984030ff13b34b7.tar.gz
otp-ffe582b55910863462673163f984030ff13b34b7.tar.bz2
otp-ffe582b55910863462673163f984030ff13b34b7.zip
dialyzer: Do not output warnings for unused funs
Dialyzer no longer outputs warnings for unused anonymous functions ("funs"). Warnings are still output for unused functions. Funs in functions with -nowarn_unused_function attributes generated warnings for unused functions. Unused list comprehensions also generated warnings for unused funs.
Diffstat (limited to 'lib/dialyzer/src/dialyzer_dataflow.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_dataflow.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dialyzer/src/dialyzer_dataflow.erl b/lib/dialyzer/src/dialyzer_dataflow.erl
index 7131633da1..f40bb2d395 100644
--- a/lib/dialyzer/src/dialyzer_dataflow.erl
+++ b/lib/dialyzer/src/dialyzer_dataflow.erl
@@ -2806,7 +2806,7 @@ state__get_warnings(#state{tree_map = TreeMap, fun_tab = FunTab,
true ->
{Warn, Msg} =
case dialyzer_callgraph:lookup_name(FunLbl, Callgraph) of
- error -> {true, {unused_fun, []}};
+ error -> {false, {}};
{ok, {_M, F, A} = MFA} ->
{not sets:is_element(MFA, NoWarnUnused),
{unused_fun, [F, A]}}