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/compiler/doc | |
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/compiler/doc')
-rw-r--r-- | lib/compiler/doc/src/compile.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml index 5219ba0f5d..549b1049d8 100644 --- a/lib/compiler/doc/src/compile.xml +++ b/lib/compiler/doc/src/compile.xml @@ -632,6 +632,22 @@ module.beam: module.erl \ to be deprecated.</p> </item> + <tag><c>nowarn_removed</c></tag> + <item> + <p>Turns off warnings for calls to functions that have + been removed. Default is to emit warnings for every call + to a function known by the compiler to have been recently + removed from Erlang/OTP.</p> + </item> + + <tag><c>{nowarn_removed, ModulesOrMFAs}</c></tag> + <item> + <p>Turns off warnings for calls to modules or functions + that have been removed. Default is to emit warnings for + every call to a function known by the compiler to have + been recently removed from Erlang/OTP.</p> + </item> + <tag><c>nowarn_obsolete_guard</c></tag> <item> <p>Turns off warnings for calls to old type testing BIFs, |