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.
