Skip to content

Commit ef527ca

Browse files
committed
Address compilation warnings on Erlang/OTP 24
1 parent e91b1fa commit ef527ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/elixir/src/elixir.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,7 @@ eval_forms(Tree, Binding, OrigE, Opts) ->
387387

388388
%% TODO: Remove conditional once we require Erlang/OTP 25+.
389389
-if(?OTP_RELEASE >= 25).
390-
eval_external_handler() -> {value, fun eval_external_handler/3}.
391-
-else.
392-
eval_external_handler() -> none.
393-
-endif.
390+
eval_external_handler() -> {value, fun eval_external_handler/3}.
394391

395392
eval_external_handler(Ann, FunOrModFun, Args) ->
396393
try
@@ -454,6 +451,9 @@ drop_common([_ | T1], T2, ToDrop) -> drop_common(T1, T2, ToDrop);
454451
drop_common([], [{?MODULE, _, _, _} | T2], _ToDrop) -> T2;
455452
drop_common([], [_ | T2], true) -> T2;
456453
drop_common([], T2, _) -> T2.
454+
-else.
455+
eval_external_handler() -> none.
456+
-endif.
457457

458458
%% Converts a quoted expression to Erlang abstract format
459459

0 commit comments

Comments
 (0)