diff options
author | Björn Gustavsson <bgustavsson@gmail.com> | 2018-11-27 14:13:42 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2018-11-27 14:13:42 +0100 |
commit | 122dcbe90cced300185a6a4b547ca70f161f565a (patch) | |
tree | b7c3bce13c7fd01ee5e68a0f701eaac9db14e7aa | |
parent | db9314374d394f7fca8223b90e722a8ffa851d72 (diff) | |
download | elixir-122dcbe90cced300185a6a4b547ca70f161f565a.tar.gz |
Eliminate warning for an unused variable (#8431)
Fix a warning that has started to occur because of a recent bug fix in
Erlang/OTP (using fun M:F/A could suppress warnings for unused
variables).
-rw-r--r-- | lib/elixir/src/elixir_fn.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/src/elixir_fn.erl b/lib/elixir/src/elixir_fn.erl index 9dde4fc0c..c5e8dca9e 100644 --- a/lib/elixir/src/elixir_fn.erl +++ b/lib/elixir/src/elixir_fn.erl @@ -6,7 +6,7 @@ %% Anonymous functions expand(Meta, Clauses, E) when is_list(Clauses) -> - Transformer = fun({_, _, [Left, Right]} = Clause, Acc) -> + Transformer = fun({_, _, [Left, _Right]} = Clause, Acc) -> case lists:any(fun is_invalid_arg/1, Left) of true -> form_error(Meta, ?key(E, file), ?MODULE, defaults_in_args); |