
Functions start being available in OTP-20, so to get rid of warnings, a conditional compilation flag is set there. The cspan function has no direct equivalent, but can be worked around. Likely heavier work would be required around its usage where strings are not handled as lists, but only through 'string' functions. However this will still cover most cases and get rid of compile-time warnings for now.
18 lines
551 B
Erlang
18 lines
551 B
Erlang
{erl_opts, [warn_unused_vars,
|
|
warn_export_all,
|
|
warn_shadow_vars,
|
|
warn_unused_import,
|
|
warn_unused_function,
|
|
warn_bif_clash,
|
|
warn_unused_record,
|
|
warn_deprecated_function,
|
|
warn_obsolete_guard,
|
|
strict_validation,
|
|
warn_export_vars,
|
|
warn_exported_vars,
|
|
warn_missing_spec,
|
|
warn_untyped_record, debug_info,
|
|
{platform_define, "^2", unicode_str}
|
|
]}.
|
|
{xref_checks, [undefined_function_calls]}.
|