mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Disable opaque_union dialyzer warnings as workaround for dialyzer with Erlang/OTP 28
See
5dab31e9f9
This commit is contained in:
parent
e34b6f4204
commit
0732603a4e
4 changed files with 17 additions and 0 deletions
|
@ -68,6 +68,10 @@
|
|||
|
||||
-optional_callbacks([globals/0]).
|
||||
|
||||
-ifndef(OTP_BELOW_28).
|
||||
-dialyzer([no_opaque_union]).
|
||||
-endif.
|
||||
|
||||
%%%===================================================================
|
||||
%%% API
|
||||
%%%===================================================================
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
|
||||
-export_type([shaper/0, shaper_rule/0, shaper_rate/0]).
|
||||
|
||||
-ifndef(OTP_BELOW_28).
|
||||
-dialyzer([no_opaque_union]).
|
||||
-endif.
|
||||
|
||||
%%%===================================================================
|
||||
%%% API
|
||||
%%%===================================================================
|
||||
|
|
|
@ -62,6 +62,11 @@
|
|||
?AC_ALLOW_HEADERS, ?AC_MAX_AGE]).
|
||||
-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) ->
|
||||
HeadersToValidate = [{'Upgrade', <<"websocket">>},
|
||||
{'Connection', ignore},
|
||||
|
|
|
@ -116,6 +116,10 @@
|
|||
-callback search_affiliation(binary(), binary(), binary(), affiliation()) ->
|
||||
{ok, [{ljid(), {affiliation(), binary()}}]} | {error, any()}.
|
||||
|
||||
-ifndef(OTP_BELOW_28).
|
||||
-dialyzer([no_opaque_union]).
|
||||
-endif.
|
||||
|
||||
%%%----------------------------------------------------------------------
|
||||
%%% API
|
||||
%%%----------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue