Skip to content

Unused variable warnings when variables created in map pattern match #33

@carusso

Description

@carusso

I have some function headers like so:

defcall set_open_device(%{"path" => path, "baud" => speed}), state: state do

"path" and "speed" are used in the function, but I see the following compiler warnings:

warning: variable "path" is unused
  lib/rni/dispatch/fmt.ex:53

warning: variable "speed" is unused
  lib/rni/dispatch/fmt.ex:53

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions