diff options
author | Björn Gustavsson <[email protected]> | 2019-04-04 06:09:31 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2019-04-05 07:28:27 +0200 |
commit | 1a58a7c0a9af1eb98ddfecbc6157325f2c869eb1 (patch) | |
tree | 12265b7124326958d4265da6173ef0d06f093522 /lib/edoc/src | |
parent | 3d259fd70ed9e24e59746c5958730892e505f1cb (diff) | |
download | otp-1a58a7c0a9af1eb98ddfecbc6157325f2c869eb1.tar.gz otp-1a58a7c0a9af1eb98ddfecbc6157325f2c869eb1.tar.bz2 otp-1a58a7c0a9af1eb98ddfecbc6157325f2c869eb1.zip |
Add options for suppressing warnings about removed functions
An appliction outside of OTP may want to reuse then name of a module
that was previously included in OTP. Therefore, there should be
a way to suppress warnings for removed functions.
Diffstat (limited to 'lib/edoc/src')
-rw-r--r-- | lib/edoc/src/edoc_data.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/edoc/src/edoc_data.erl b/lib/edoc/src/edoc_data.erl index 7c077d3acd..a8373d6536 100644 --- a/lib/edoc/src/edoc_data.erl +++ b/lib/edoc/src/edoc_data.erl @@ -345,6 +345,8 @@ deprecated(Repl, Env) -> deprecated(Desc) -> [{deprecated, description(Desc)}]. +-dialyzer({no_match, replacement_function/2}). + replacement_function(M0, {M,F,A}) when is_list(A) -> %% refer to the largest listed arity - the most general version replacement_function(M0, {M,F,lists:last(lists:sort(A))}); |