From e823da99aebe1aa7791d092d5fd2e32933456f96 Mon Sep 17 00:00:00 2001 From: Brett Nicholas Date: Thu, 20 Jul 2023 16:22:48 -0600 Subject: [PATCH] declare loop variable at top of function body --- examples/benchmark/tls_bench.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/benchmark/tls_bench.c b/examples/benchmark/tls_bench.c index 56fea7b7d..582aaadc9 100644 --- a/examples/benchmark/tls_bench.c +++ b/examples/benchmark/tls_bench.c @@ -388,9 +388,10 @@ int DoneHandShake = 0; static int run_all_CAST(void) { int ret = 0; + int cast_idx = 0; - for (int i=0; i