aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer
diff options
context:
space:
mode:
authorBrujo Benavides <[email protected]>2016-07-26 10:11:12 -0300
committerGitHub <[email protected]>2016-07-26 10:11:12 -0300
commitde7e9fb478181f60fa0b3e8340e5a74ae0beb1a3 (patch)
tree2961b52856717198ce3187e811d4e58a9628d6cb /lib/dialyzer
parent19822234eaf6f5e4066d42a304b87d1f6b33c04c (diff)
downloadotp-de7e9fb478181f60fa0b3e8340e5a74ae0beb1a3.tar.gz
otp-de7e9fb478181f60fa0b3e8340e5a74ae0beb1a3.tar.bz2
otp-de7e9fb478181f60fa0b3e8340e5a74ae0beb1a3.zip
Improve format_warning/1 spec
Let it handle `dial_warning()` input as well, to match what `format_warning/2` expects.
Diffstat (limited to 'lib/dialyzer')
-rw-r--r--lib/dialyzer/src/dialyzer.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dialyzer/src/dialyzer.erl b/lib/dialyzer/src/dialyzer.erl
index bcac8afe64..7f86520c06 100644
--- a/lib/dialyzer/src/dialyzer.erl
+++ b/lib/dialyzer/src/dialyzer.erl
@@ -282,7 +282,7 @@ cl_check_log(none) ->
cl_check_log(Output) ->
io:format(" Check output file `~s' for details\n", [Output]).
--spec format_warning(raw_warning()) -> string().
+-spec format_warning(raw_warning() | dial_warning()) -> string().
format_warning(W) ->
format_warning(W, basename).