
* introduced by 505d35996d
* rebar2 is now deprecated [1].
[1] https://github.com/rebar/rebar
7 lines
236 B
Text
7 lines
236 B
Text
NoDialWarns = {dialyzer, [{warnings, [no_unknown]}]},
|
|
OTPRelease = erlang:list_to_integer(erlang:system_info(otp_release)),
|
|
|
|
case OTPRelease<26 of
|
|
true -> CONFIG;
|
|
false -> lists:keystore(dialyzer, 1, CONFIG, NoDialWarns)
|
|
end.
|