-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squelch dialyzer warns for translated type encoders
When a (scalar) type always operate on data from a translation function, then emit a dialyzer nowarn_function attribyte (if supported for the target erlang version). The reasoning is that the type encoders are written for the general case for inputs over the entire supported range, but when all fields get their data via a translation, it can be that dialyzer can see that a general-case function clause is dead code with this a particular translator.
- Loading branch information
1 parent
11145c4
commit 51f5656
Showing
2 changed files
with
98 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters