From b86fde22bc723505292a1094e918e2b40c3989f2 Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Fri, 8 Feb 2019 19:00:23 +0100 Subject: [socket] Shut dialyzer up --- erts/preloaded/ebin/socket.beam | Bin 69880 -> 70280 bytes erts/preloaded/src/socket.erl | 5 +++++ 2 files changed, 5 insertions(+) diff --git a/erts/preloaded/ebin/socket.beam b/erts/preloaded/ebin/socket.beam index 28fd5497e1..360ac195f1 100644 Binary files a/erts/preloaded/ebin/socket.beam and b/erts/preloaded/ebin/socket.beam differ diff --git a/erts/preloaded/src/socket.erl b/erts/preloaded/src/socket.erl index 79459941cf..f889c6e37b 100644 --- a/erts/preloaded/src/socket.erl +++ b/erts/preloaded/src/socket.erl @@ -872,6 +872,7 @@ supports() -> {ipv6, supports(ipv6)}]. +-dialyzer({nowarn_function, supports/1}). -spec supports(options) -> supports_options(); (sctp) -> boolean(); (ipv6) -> boolean(); @@ -887,6 +888,7 @@ supports(ipv6) -> supports(_Key1) -> false. +-dialyzer({nowarn_function, supports/2}). -spec supports(options, socket) -> supports_options_socket(); (options, ip) -> supports_options_ip(); (options, ipv6) -> supports_options_ipv6(); @@ -903,6 +905,7 @@ supports(_Key1, _Level) -> false. +-dialyzer({nowarn_function, supports/3}). -spec supports(options, socket, Opt) -> boolean() when Opt :: socket_option(); (options, ip, Opt) -> boolean() when @@ -2523,6 +2526,7 @@ enc_setopt_key(Level, Opt, Domain, Type, Protocol) -> %% encode the value into an more "manageable" type. %% It also handles "aliases" (see linger). +-dialyzer({nowarn_function, enc_setopt_value/6}). -spec enc_setopt_value(otp, otp_socket_option(), Value, Domain, Type, Protocol) -> term() when Value :: term(), @@ -3444,6 +3448,7 @@ enc_shutdown_how(read_write) -> %% %% =========================================================================== +-dialyzer({nowarn_function, ensure_ip_msfilter_slist/1}). ensure_ip_msfilter_slist(SL) -> EnsureSA = fun(SA) when is_tuple(SA) andalso (size(SA) =:= 4) -> ok; (_) -> einval() -- cgit v1.2.3