File 0452-ssh-test-Fix-four-compile-warnings-in-testsuites.patch of Package erlang

From d1eba8ddd7b9259db2e55eeccff6fb8e3da86cf7 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Mon, 1 Aug 2022 14:42:21 +0200
Subject: [PATCH 2/2] ssh/test: Fix four compile warnings in testsuites

---
 lib/ssh/test/ssh_connection_SUITE.erl | 4 ++--
 lib/ssh/test/ssh_protocol_SUITE.erl   | 4 +---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/ssh/test/ssh_connection_SUITE.erl b/lib/ssh/test/ssh_connection_SUITE.erl
index 78a0f65edb..f7f0a118f7 100644
--- a/lib/ssh/test/ssh_connection_SUITE.erl
+++ b/lib/ssh/test/ssh_connection_SUITE.erl
@@ -368,7 +368,7 @@ connect4_invalid_two_1(Config) ->
     ssh:stop_daemon(Pid).
 
 connect4_invalid_two_2(Config) ->
-    {Pid, Host, Port, _UserDir} = daemon_start(Config),
+    {Pid, Host, _Port, _UserDir} = daemon_start(Config),
 
     %% Actual error implementation dependent
     {error, _} =
@@ -380,7 +380,7 @@ connect4_invalid_two_2(Config) ->
 
 %% All three args incorrect
 connect4_invalid_three(Config) ->
-    {Pid, Host, Port, _UserDir} = daemon_start(Config),
+    {Pid, Host, _Port, _UserDir} = daemon_start(Config),
 
     %% Actual error implementation dependent
     {error, _} =
diff --git a/lib/ssh/test/ssh_protocol_SUITE.erl b/lib/ssh/test/ssh_protocol_SUITE.erl
index dbe862eab6..dd7c22dcd5 100644
--- a/lib/ssh/test/ssh_protocol_SUITE.erl
+++ b/lib/ssh/test/ssh_protocol_SUITE.erl
@@ -903,8 +903,6 @@ modify_combo(Config) ->
 
 %%%----------------------------------------------------------------
 %%%
-client_close_after_hello() -> [{timetrap,{seconds,80}}].
-
 client_close_after_hello(Config0) ->
     MaxSessions = 20,
     SleepSec = 15,
@@ -913,7 +911,7 @@ client_close_after_hello(Config0) ->
                                         {negotiation_timeout,SleepSec*1000}
                                        ]),
 
-    {Parents0, Conns0, []} = find_handshake_parent(server_port(Config)),
+    {_Parents0, Conns0, []} = find_handshake_parent(server_port(Config)),
 
     Cs =
         [ssh_trpt_test_lib:exec(
-- 
2.35.3

openSUSE Build Service is sponsored by