summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Gustavsson <bgustavsson@gmail.com>2018-11-27 14:13:42 +0100
committerJosé Valim <jose.valim@gmail.com>2018-11-27 14:13:42 +0100
commit122dcbe90cced300185a6a4b547ca70f161f565a (patch)
treeb7c3bce13c7fd01ee5e68a0f701eaac9db14e7aa
parentdb9314374d394f7fca8223b90e722a8ffa851d72 (diff)
downloadelixir-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.erl2
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);