aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_lint.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-02-03 14:44:16 +0100
committerHans Bolinder <[email protected]>2016-02-17 09:17:32 +0100
commit03e5309b312bd1c714a3874eba1384bf5b4feff5 (patch)
treefe67f7c8a61f0c77118574b079d3929249809006 /lib/stdlib/src/erl_lint.erl
parent811d6f7c9d9f86a388b8ba555b42934b9ed1c180 (diff)
downloadotp-03e5309b312bd1c714a3874eba1384bf5b4feff5.tar.gz
otp-03e5309b312bd1c714a3874eba1384bf5b4feff5.tar.bz2
otp-03e5309b312bd1c714a3874eba1384bf5b4feff5.zip
stdlib: Add suppression of Dialyzer warnings
Diffstat (limited to 'lib/stdlib/src/erl_lint.erl')
-rw-r--r--lib/stdlib/src/erl_lint.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stdlib/src/erl_lint.erl b/lib/stdlib/src/erl_lint.erl
index e940ad6956..62b3169a6c 100644
--- a/lib/stdlib/src/erl_lint.erl
+++ b/lib/stdlib/src/erl_lint.erl
@@ -3532,6 +3532,8 @@ check_qlc_hrl(Line, M, F, As, St) ->
%% deprecated_function(Line, ModName, FuncName, [Arg], State) -> State.
%% Add warning for calls to deprecated functions.
+-dialyzer({no_match, deprecated_function/5}).
+
deprecated_function(Line, M, F, As, St) ->
Arity = length(As),
MFA = {M, F, Arity},
@@ -3560,6 +3562,8 @@ deprecated_function(Line, M, F, As, St) ->
St
end.
+-dialyzer({no_match, deprecated_type/5}).
+
deprecated_type(L, M, N, As, St) ->
NAs = length(As),
case otp_internal:obsolete_type(M, N, NAs) of