aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/doc/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-01-07 14:46:05 +0100
committerGitHub <[email protected]>2019-01-07 14:46:05 +0100
commit46d966b02f636807074ec9658a89d65415e7d7f7 (patch)
treedc1e3795891db8ca69df7731d072cac91e27b48d /lib/compiler/doc/src
parent3db7e967cf21af1f42febff4293274b84c7bd6b4 (diff)
parent8136daa9c84c3324988a29d9dff5be10ab767e51 (diff)
downloadotp-46d966b02f636807074ec9658a89d65415e7d7f7.tar.gz
otp-46d966b02f636807074ec9658a89d65415e7d7f7.tar.bz2
otp-46d966b02f636807074ec9658a89d65415e7d7f7.zip
Merge pull request #2063 from bjorng/bjorn/compiler/options/OTP-15456
Make all compiler options work in the option list
Diffstat (limited to 'lib/compiler/doc/src')
-rw-r--r--lib/compiler/doc/src/compile.xml13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml
index 78128980f0..5219ba0f5d 100644
--- a/lib/compiler/doc/src/compile.xml
+++ b/lib/compiler/doc/src/compile.xml
@@ -695,12 +695,13 @@ module.beam: module.erl \
</note>
<note>
- <p>The options <c>{nowarn_unused_function, FAs}</c>,
- <c>{nowarn_bif_clash, FAs}</c>, and
- <c>{nowarn_deprecated_function, MFAs}</c> are only
- recognized when given in files. They are not affected by
- options <c>warn_unused_function</c>, <c>warn_bif_clash</c>, or
- <c>warn_deprecated_function</c>.</p>
+ <p>Before OTP 22, the option <c>{nowarn_deprecated_function,
+ MFAs}</c> was only recognized when given in the file with
+ attribute <c>-compile()</c>. (The option
+ <c>{nowarn_unused_function,FAs}</c> was incorrectly documented
+ to only work in a file, but it also worked when given in the
+ option list.) Starting from OTP 22, all options that can be
+ given in the file can also be given in the option list.</p>
</note>
<p>For debugging of the compiler, or for pure curiosity,