Skip to content

Warning on Elixir 1.16 + OTP 25 #369

Closed as not planned
Closed as not planned
@thbar

Description

@thbar

Met this week while upgrading our main app:

==> protobuf
Compiling 37 files (.ex)
warning: pattern matching on 0.0 is equivalent to matching only on +0.0 from Erlang/OTP 27+. Instead you must match on +0.0 or -0.0
└─ lib/protobuf/encoder.ex: Protobuf.Encoder.skip_field?/3

Generated protobuf app

defp skip_field?(:proto3, 0.0, %FieldProps{oneof: nil}), do: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Kind:BugA bug. Can be a documentation bug, Dialyzer issue, or anything that just "doesn't work".

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions