Skip to content

Commit

Permalink
Redis: Disable some dialyzer warnings when using old Erlang 20
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Dec 5, 2024
1 parent f269d5b commit ce6d5aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ejabberd_redis.erl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@

-export_type([error_reason/0]).

-ifdef(USE_OLD_HTTP_URI). % Erlang/OTP lower than 21
-dialyzer([{no_return, do_connect/6},
{no_unused, flush_queue/1},
{no_match, flush_queue/1},
{no_unused, re_subscribe/2},
{no_match, handle_info/2}]).
-endif.

%%%===================================================================
%%% API
%%%===================================================================
Expand Down

0 comments on commit ce6d5aa

Please sign in to comment.