Skip to content

Commit 8bdffad

Browse files
committed
Merge pull request #1681 from pguyot/w22/export-nif-error
Define `nif_error/1` to silence an OTP28 warning 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
2 parents bf24edc + 5b0fe70 commit 8bdffad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libs/estdlib/src/erlang.erl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
min/2,
4545
max/2,
4646
memory/1,
47+
nif_error/1,
4748
get/0,
4849
get/1,
4950
put/2,
@@ -1509,3 +1510,8 @@ unique_integer() ->
15091510
-spec unique_integer([monotonic | positive]) -> integer().
15101511
unique_integer(_Options) ->
15111512
erlang:nif_error(undefined).
1513+
1514+
%% @private
1515+
-spec nif_error(Reason :: any()) -> no_return().
1516+
nif_error(_Reason) ->
1517+
erlang:nif_error(undefined).

0 commit comments

Comments
 (0)