You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which is expected and fine, but in the same way that we have options to disable other warnings (e.g. nowarn_unused_function, nowarn_keywords, nowarn_update_literal, etc.), I would like to have an option to avoid warnings like the ones above.
Describe the solution you'd like
I would like the addition of the following compiler options:
nowarn_conflicting_behaviours
nowarn_undefined_behaviour_func
nowarn_undefined_behaviour
nowarn_undefined_behaviour_callbacks
nowarn_ill_defined_behaviour_callbacks
nowarn_ill_defined_optional_callbacks
nowarn_behaviour_info
nowarn_redefine_optional_callback
nowarn_undefined_callback
Describe alternatives you've considered
I tried adding -compile([no_lint]). to my module, but the warnings were emitted anyway.
This commit adds the following compiler options for suppressing
warnings having to do with behaviours:
* nowarn_conflicting_behaviours
* nowarn_undefined_behaviour_func
* nowarn_undefined_behaviour
* nowarn_undefined_behaviour_callbacks
* nowarn_ill_defined_behaviour_callbacks
* nowarn_ill_defined_optional_callbacks
Closeserlang#8985
I've added the six first of the suggested options in the linked pull request. The last three refers to compiler errors. This will be included in Erlang/OTP 28.
Is your feature request related to a problem? Please describe.
I want to be able to compile a module like the following one with no warnings:
Currently, if I try to compile it, I get…
Which is expected and fine, but in the same way that we have options to disable other warnings (e.g.
nowarn_unused_function
,nowarn_keywords
,nowarn_update_literal
, etc.), I would like to have an option to avoid warnings like the ones above.Describe the solution you'd like
I would like the addition of the following compiler options:
nowarn_conflicting_behaviours
nowarn_undefined_behaviour_func
nowarn_undefined_behaviour
nowarn_undefined_behaviour_callbacks
nowarn_ill_defined_behaviour_callbacks
nowarn_ill_defined_optional_callbacks
nowarn_behaviour_info
nowarn_redefine_optional_callback
nowarn_undefined_callback
Describe alternatives you've considered
I tried adding
-compile([no_lint]).
to my module, but the warnings were emitted anyway.Additional context
This is the source of the necessity: inaka/elvis_core#367 (comment)
The text was updated successfully, but these errors were encountered: