aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/doc
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-04-04 06:09:31 +0200
committerBjörn Gustavsson <[email protected]>2019-04-05 07:28:27 +0200
commit1a58a7c0a9af1eb98ddfecbc6157325f2c869eb1 (patch)
tree12265b7124326958d4265da6173ef0d06f093522 /lib/compiler/doc
parent3d259fd70ed9e24e59746c5958730892e505f1cb (diff)
downloadotp-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.xml16
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,