OTP bump
* sequel of 17e6f89078
* added R26 in CI/CD, and cleared out dialyzer warnings
* from R26, by default, `-Wno_unknown` suppresses warnings [1]
* in R25, it was the reverse behavior: `-Wunknown` allows warnings [2].
[1] https://www.erlang.org/doc/man/dialyzer.html#warning_options
[2] https://www.erlang.org/docs/25/man/dialyzer#format_warning-1
This commit is contained in:
parent
cb3983741e
commit
63b1798b1e
2 changed files with 10 additions and 3 deletions
|
@ -10,8 +10,15 @@ Rebar2Deps = [
|
|||
{cf, ".*", {git, "https://github.com/project-fifo/cf", {tag, "0.2.2"}}}
|
||||
],
|
||||
|
||||
NoDialWarns = {dialyzer, [{warnings, [no_unknown]}]},
|
||||
OTPRelease = erlang:list_to_integer(erlang:system_info(otp_release)),
|
||||
WarnsRemoved = case OTPRelease<26 of
|
||||
true -> fun(Config) -> Config end;
|
||||
false -> fun(Config) -> lists:keystore(dialyzer, 1, Config, NoDialWarns) end
|
||||
end,
|
||||
|
||||
case IsRebar3 of
|
||||
true -> CONFIG;
|
||||
true -> WarnsRemoved(CONFIG);
|
||||
false ->
|
||||
lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps})
|
||||
lists:keyreplace(deps, 1, WarnsRemoved(CONFIG), {deps, Rebar2Deps})
|
||||
end.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue