From ce6d5aa6a0a73e61348b62a9330d1c0235471fa9 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 5 Dec 2024 12:00:05 +0100 Subject: [PATCH] Redis: Disable some dialyzer warnings when using old Erlang 20 --- src/ejabberd_redis.erl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ejabberd_redis.erl b/src/ejabberd_redis.erl index 05fa5e497..46fe8ce90 100644 --- a/src/ejabberd_redis.erl +++ b/src/ejabberd_redis.erl @@ -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 %%%===================================================================