Merge pull request #107 from aeternity/otp-24-support

Fix OTP-24 warnings and add OTP-24 compatible rebar3
This commit is contained in:
seanhinde 2021-11-09 16:27:23 +01:00 committed by GitHub
commit 0699f35b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ test: local
@$(REBAR) as local eunit
ebin/%.beam: src/%.erl
erlc -o $(dir $@) $<
erlc +debug_info -o $(dir $@) $<
$(GENERATED_SRC): $(GENERATOR_DEPS)
erl -pa ebin/ -noshell -s aeb_fate_generate_ops gen_and_halt src/ include/

BIN
rebar3

Binary file not shown.

View File

@ -356,7 +356,7 @@ parse_tuple(Tokens) ->
parse_variant([{start_variant,_line}
, {'[', _line}
, {'[', _}
| Rest]) ->
{Arities, Rest2} = parse_list(Rest),
%% Make sure Arities is a list of bytes.
@ -364,7 +364,7 @@ parse_variant([{start_variant,_line}
is_integer(A), A < 256],
[{'|',_}
, {int,_line, Tag}
, {int,_, Tag}
, {'|',_}
, {'(',_} | Rest3] = Rest2,
{Elements , [{end_variant, _} | Rest4]} = parse_tuple(Rest3),