1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

Disable opaque_union dialyzer warnings as workaround for dialyzer with Erlang/OTP 28

See
5dab31e9f9
This commit is contained in:
Badlop 2025-01-24 18:50:48 +01:00
parent e34b6f4204
commit 0732603a4e
4 changed files with 17 additions and 0 deletions

View file

@ -68,6 +68,10 @@
-optional_callbacks([globals/0]). -optional_callbacks([globals/0]).
-ifndef(OTP_BELOW_28).
-dialyzer([no_opaque_union]).
-endif.
%%%=================================================================== %%%===================================================================
%%% API %%% API
%%%=================================================================== %%%===================================================================

View file

@ -36,6 +36,10 @@
-export_type([shaper/0, shaper_rule/0, shaper_rate/0]). -export_type([shaper/0, shaper_rule/0, shaper_rate/0]).
-ifndef(OTP_BELOW_28).
-dialyzer([no_opaque_union]).
-endif.
%%%=================================================================== %%%===================================================================
%%% API %%% API
%%%=================================================================== %%%===================================================================

View file

@ -62,6 +62,11 @@
?AC_ALLOW_HEADERS, ?AC_MAX_AGE]). ?AC_ALLOW_HEADERS, ?AC_MAX_AGE]).
-define(HEADER, [?CT_XML, ?AC_ALLOW_ORIGIN, ?AC_ALLOW_HEADERS]). -define(HEADER, [?CT_XML, ?AC_ALLOW_ORIGIN, ?AC_ALLOW_HEADERS]).
-ifndef(OTP_BELOW_28).
-dialyzer([no_opaque_union]).
-endif.
is_valid_websocket_upgrade(_Path, Headers) -> is_valid_websocket_upgrade(_Path, Headers) ->
HeadersToValidate = [{'Upgrade', <<"websocket">>}, HeadersToValidate = [{'Upgrade', <<"websocket">>},
{'Connection', ignore}, {'Connection', ignore},

View file

@ -116,6 +116,10 @@
-callback search_affiliation(binary(), binary(), binary(), affiliation()) -> -callback search_affiliation(binary(), binary(), binary(), affiliation()) ->
{ok, [{ljid(), {affiliation(), binary()}}]} | {error, any()}. {ok, [{ljid(), {affiliation(), binary()}}]} | {error, any()}.
-ifndef(OTP_BELOW_28).
-dialyzer([no_opaque_union]).
-endif.
%%%---------------------------------------------------------------------- %%%----------------------------------------------------------------------
%%% API %%% API
%%%---------------------------------------------------------------------- %%%----------------------------------------------------------------------