From c01adbbbd5aad1f59c8127473f41aa24a0547da9 Mon Sep 17 00:00:00 2001 From: Winford Date: Mon, 16 Dec 2024 09:54:49 +0000 Subject: [PATCH] Fix unused `Base` warning when compiling erlang.erl Fixes a warning that `Base` is unused in `erlang:binary_to_integer/2` when compiling erlang.erl. Signed-off-by: Winford --- libs/estdlib/src/erlang.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/estdlib/src/erlang.erl b/libs/estdlib/src/erlang.erl index 581753b7c..bb4cc85ff 100644 --- a/libs/estdlib/src/erlang.erl +++ b/libs/estdlib/src/erlang.erl @@ -673,7 +673,7 @@ binary_to_integer(_Binary) -> %% @end %%----------------------------------------------------------------------------- -spec binary_to_integer(Binary :: binary(), Base :: 2..36) -> integer(). -binary_to_integer(_Binary, Base) -> +binary_to_integer(_Binary, _Base) -> erlang:nif_error(undefined). %%-----------------------------------------------------------------------------