Skip to content

Commit

Permalink
Updates to fix dialyzer failing on otp 26+
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed Sep 5, 2024
1 parent 06347e7 commit 70bab7d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ ebin/
.eunit/
.idea/
_build
doc/
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ compile: rebar3
update: rebar3
$(REBAR) update

test: compile
$(REBAR) eunit
test:
EUNIT=1 $(REBAR) compile
EUNIT=1 $(REBAR) eunit

dialyzer: compile
$(REBAR) dialyzer
DIALYZER=1 $(REBAR) dialyzer

travis: test dialyzer

Expand Down
4 changes: 4 additions & 0 deletions src/qdate.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,8 @@ flooring(N) when N < 0 ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TESTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-ifdef(EUNIT).

-include_lib("eunit/include/eunit.hrl").

%% emulates as if a forum-type website has a Site tz, and a user-specified tz
Expand Down Expand Up @@ -1529,3 +1531,5 @@ microsoft_parser(_) ->

stop_test(_) ->
ok.

-endif.

0 comments on commit 70bab7d

Please sign in to comment.