aboutsummaryrefslogtreecommitdiffstats
path: root/lib/edoc/src/edoc_parser.yrl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-11-15 15:44:54 +0200
committerKostis Sagonas <[email protected]>2010-11-15 15:44:54 +0200
commite1f67dda7a9c2736f7b8d5d30fe84f2a2f39a8c1 (patch)
tree1e87864a13b04b776abc15b28ba66f19eff27b36 /lib/edoc/src/edoc_parser.yrl
parent76378bb4a1a89d08b41d6f3df0edc6c26160bef7 (diff)
downloadotp-e1f67dda7a9c2736f7b8d5d30fe84f2a2f39a8c1.tar.gz
otp-e1f67dda7a9c2736f7b8d5d30fe84f2a2f39a8c1.tar.bz2
otp-e1f67dda7a9c2736f7b8d5d30fe84f2a2f39a8c1.zip
Fix various dialyzer warnings
Add appropriate specs to shut off dialyzer's no_return warnings and also fix an erroneous use of lists:concat/1 instead of lists:append/1.
Diffstat (limited to 'lib/edoc/src/edoc_parser.yrl')
-rw-r--r--lib/edoc/src/edoc_parser.yrl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/edoc/src/edoc_parser.yrl b/lib/edoc/src/edoc_parser.yrl
index 0eea8ae66f..91ee5a1b2b 100644
--- a/lib/edoc/src/edoc_parser.yrl
+++ b/lib/edoc/src/edoc_parser.yrl
@@ -404,6 +404,8 @@ parse_throws(S, L) ->
%% ---------------------------------------------------------------------
+-spec throw_error(term(), erl_scan:line()) -> no_return().
+
throw_error({L, M, D}, _L0) ->
throw({error,L,{format_error,M,D}});
throw_error({parse_spec, E}, L) ->