File 0764-Fix-dialyzer-diameter_tcp-l-2-warning.patch of Package erlang
From 10b8c0f6cc71611be0f57f91d7095fa6021681f8 Mon Sep 17 00:00:00 2001
From: Anders Svensson <anders@erlang.org>
Date: Sun, 9 Feb 2020 14:27:51 +0100
Subject: [PATCH 4/7] Fix dialyzer diameter_tcp:l/2 warning
diameter_tcp.erl:575: Function l/2 has no local return
Appears to have introduced in commit eb69b55b, which cleaned up after a
functional change in commit 2afd1fe5, after which there was no longer
any l/2 clause that returned.
Why functions explicitly exit rather than return a stop tuple to have
gen_server exit is a bit of a mystery, but it was probably just
consistency given other usage in the module. There's no functional
difference.
---
lib/diameter/src/transport/diameter_tcp.erl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/diameter/src/transport/diameter_tcp.erl b/lib/diameter/src/transport/diameter_tcp.erl
index e5e766d2a0..a051aeb156 100644
--- a/lib/diameter/src/transport/diameter_tcp.erl
+++ b/lib/diameter/src/transport/diameter_tcp.erl
@@ -569,7 +569,11 @@ m({'DOWN', M, process, P, _} = T, #monitor{parent = MRef,
%% l/2
%%
-%% Transition listener state.
+%% Transition listener state. Or not anymore since any message causes
+%% the process to exit.
+
+-spec l(tuple(), #listener{})
+ -> no_return().
%% Service process has died.
l({'DOWN', _, process, Pid, _} = T, #listener{service = Pid,
--
2.16.4