diff options
author | Micael Karlberg <[email protected]> | 2019-02-08 19:00:23 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-02-22 19:45:52 +0100 |
commit | b86fde22bc723505292a1094e918e2b40c3989f2 (patch) | |
tree | e571dfc8c23db55a53bed4cb10d4eb472a4047b4 /erts/preloaded/src | |
parent | 2892deedb43cb3f0e1479f18609584c9d4952dda (diff) | |
download | otp-b86fde22bc723505292a1094e918e2b40c3989f2.tar.gz otp-b86fde22bc723505292a1094e918e2b40c3989f2.tar.bz2 otp-b86fde22bc723505292a1094e918e2b40c3989f2.zip |
[socket] Shut dialyzer up
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r-- | erts/preloaded/src/socket.erl | 5 |
1 files changed, 5 insertions, 0 deletions
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() |