aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2012-03-22 10:18:57 +0100
committerStavros Aronis <[email protected]>2012-03-26 23:46:03 +0200
commit154b98e876256310b3832334695094487da6ea3a (patch)
tree4cc678c0cf11c59cb2d5654142063c0a968aca6d /lib/dialyzer/src/dialyzer_analysis_callgraph.erl
parente7b056ee49f2c3e8080e5424d87c0be27c9ebf7f (diff)
downloadotp-154b98e876256310b3832334695094487da6ea3a.tar.gz
otp-154b98e876256310b3832334695094487da6ea3a.tar.bz2
otp-154b98e876256310b3832334695094487da6ea3a.zip
Report only actual unknown types otherwise no message is sent
Diffstat (limited to 'lib/dialyzer/src/dialyzer_analysis_callgraph.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_analysis_callgraph.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
index 5be870d78f..b6dbfdfacf 100644
--- a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
+++ b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
@@ -463,8 +463,10 @@ default_includes(Dir) ->
rcv_and_send_ext_types(Parent) ->
Self = self(),
Self ! {Self, done},
- ExtTypes = rcv_ext_types(Self, []),
- Parent ! {Self, ext_types, ExtTypes},
+ case rcv_ext_types(Self, []) of
+ [] -> ok;
+ ExtTypes -> Parent ! {Self, ext_types, ExtTypes}
+ end,
ok.
rcv_ext_types(Self, ExtTypes) ->