From: Anders Roxell <hidden> Date: 2021-11-05 16:45:27
When building selftests/net with clang, the compiler warn about the
function abs() see below:
tls.c:657:15: warning: variable 'len_compared' set but not used [-Wunused-but-set-variable]
unsigned int len_compared = 0;
^
Rework to remove the unused variable and the for-loop where the variable
'len_compared' was assinged.
Signed-off-by: Anders Roxell <redacted>
---
tools/testing/selftests/net/tls.c | 3 ---
1 file changed, 3 deletions(-)
From: Nick Desaulniers <ndesaulniers@google.com> Date: 2021-11-05 20:47:53
On Fri, Nov 5, 2021 at 9:45 AM Anders Roxell [off-list ref] wrote:
When building selftests/net with clang, the compiler warn about the
function abs() see below:
tls.c:657:15: warning: variable 'len_compared' set but not used [-Wunused-but-set-variable]
unsigned int len_compared = 0;
^
Rework to remove the unused variable and the for-loop where the variable
'len_compared' was assinged.
Signed-off-by: Anders Roxell <redacted>
Thanks for the patch. Hard to say what the original intent was here.
Fixes: 7f657d5bf507 ("selftests: tls: add selftests for TLS sockets")
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller [off-list ref]:
On Fri, 5 Nov 2021 17:45:11 +0100 you wrote:
When building selftests/net with clang, the compiler warn about the
function abs() see below:
tls.c:657:15: warning: variable 'len_compared' set but not used [-Wunused-but-set-variable]
unsigned int len_compared = 0;
^
[...]