From 8136daa9c84c3324988a29d9dff5be10ab767e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Mon, 10 Dec 2018 16:10:01 +0100 Subject: Make all compiler options work in the option list Before OTP 22, the option `{nowarn_deprecated_function,MFAs}` was only recognized when given in the file with the attribute `-compile()`. (The option `{nowarn_unused_function,FAs}` 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. --- lib/compiler/doc/src/compile.xml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/compiler/doc/src/compile.xml') 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 \ -

The options {nowarn_unused_function, FAs}, - {nowarn_bif_clash, FAs}, and - {nowarn_deprecated_function, MFAs} are only - recognized when given in files. They are not affected by - options warn_unused_function, warn_bif_clash, or - warn_deprecated_function.

+

Before OTP 22, the option {nowarn_deprecated_function, + MFAs} was only recognized when given in the file with + attribute -compile(). (The option + {nowarn_unused_function,FAs} 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.

For debugging of the compiler, or for pure curiosity, -- cgit v1.2.3