diff options
author | Björn Gustavsson <[email protected]> | 2019-01-07 14:46:05 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-01-07 14:46:05 +0100 |
commit | 46d966b02f636807074ec9658a89d65415e7d7f7 (patch) | |
tree | dc1e3795891db8ca69df7731d072cac91e27b48d /lib/stdlib/src | |
parent | 3db7e967cf21af1f42febff4293274b84c7bd6b4 (diff) | |
parent | 8136daa9c84c3324988a29d9dff5be10ab767e51 (diff) | |
download | otp-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/stdlib/src')
-rw-r--r-- | lib/stdlib/src/erl_lint.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stdlib/src/erl_lint.erl b/lib/stdlib/src/erl_lint.erl index e0cd68617b..3ec78a2667 100644 --- a/lib/stdlib/src/erl_lint.erl +++ b/lib/stdlib/src/erl_lint.erl @@ -831,13 +831,15 @@ bif_clashes(Forms, #lint{nowarn_bif_clash=Nowarn} = St) -> %% not_deprecated(Forms, State0) -> State -not_deprecated(Forms, St0) -> +not_deprecated(Forms, #lint{compile=Opts}=St0) -> %% There are no line numbers in St0#lint.compile. MFAsL = [{MFA,L} || {attribute, L, compile, Args} <- Forms, {nowarn_deprecated_function, MFAs0} <- lists:flatten([Args]), MFA <- lists:flatten([MFAs0])], - Nowarn = [MFA || {MFA,_L} <- MFAsL], + Nowarn = [MFA || + {nowarn_deprecated_function, MFAs0} <- Opts, + MFA <- lists:flatten([MFAs0])], ML = [{M,L} || {{M,_F,_A},L} <- MFAsL, is_atom(M)], St1 = foldl(fun ({M,L}, St2) -> check_module_name(M, L, St2) |