Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit d623532

Browse files
Dialyzer: disable no_match for decompose_pid/1
which has code matching on a constant conditional to OTP version. Follow-up to #313.
1 parent 108264f commit d623532

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rabbit_misc.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ decompose_pid(Pid) when is_pid(Pid) ->
730730
<<131, 103, _NodePrefix:NodeByteSize/binary, Id:32, Ser:32, Cre:8>> = BinPid,
731731
{Node, Cre, Id, Ser}
732732
end.
733+
-dialyzer({no_match, decompose_pid/1}).
733734

734735
compose_pid(Node, Cre, Id, Ser) ->
735736
<<131,NodeEnc/binary>> = term_to_binary(Node),

0 commit comments

Comments
 (0)