Updates to fix dialyzer failing on otp 26+

This commit is contained in:
Jesse Gumm 2024-09-05 14:55:48 -05:00
parent 06347e7f31
commit 70bab7df95
3 changed files with 9 additions and 3 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ ebin/
.eunit/ .eunit/
.idea/ .idea/
_build _build
doc/

View file

@ -15,11 +15,12 @@ compile: rebar3
update: rebar3 update: rebar3
$(REBAR) update $(REBAR) update
test: compile test:
$(REBAR) eunit EUNIT=1 $(REBAR) compile
EUNIT=1 $(REBAR) eunit
dialyzer: compile dialyzer: compile
$(REBAR) dialyzer DIALYZER=1 $(REBAR) dialyzer
travis: test dialyzer travis: test dialyzer

View file

@ -1206,6 +1206,8 @@ flooring(N) when N < 0 ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TESTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TESTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-ifdef(EUNIT).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
%% emulates as if a forum-type website has a Site tz, and a user-specified tz %% emulates as if a forum-type website has a Site tz, and a user-specified tz
@ -1529,3 +1531,5 @@ microsoft_parser(_) ->
stop_test(_) -> stop_test(_) ->
ok. ok.
-endif.