Skip to content

Commit

Permalink
Merge pull request #1400 from UncleGrumpy/binary_to_integer-warning
Browse files Browse the repository at this point in the history
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.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
  • Loading branch information
bettio committed Dec 17, 2024
2 parents bf3783c + c01adbb commit 3833b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/estdlib/src/erlang.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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).

%%-----------------------------------------------------------------------------
Expand Down

0 comments on commit 3833b7d

Please sign in to comment.