From a99724e93446c96581d379a3cecc2da7453acaa6 Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Fri, 21 Jun 2024 23:14:54 +0300 Subject: Remove not used variable from POSIX thread code --- src/thread_posix.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/thread_posix.c b/src/thread_posix.c index 1122baf..00c1b53 100644 --- a/src/thread_posix.c +++ b/src/thread_posix.c @@ -4,14 +4,13 @@ static void *bh_thread_run(void *arg) { - bh_tls_t *tls; bh_task_t *task; /* Fetch thread data */ task = (bh_task_t *)arg; /* Setup TLS */ - tls = bh_tls_fetch(); + bh_tls_fetch(); /* Do the task, mark as done, and if required free it */ task->func(task->data); @@ -401,4 +400,4 @@ bh_tls_t *bh_tls_fetch(void) /* Return TLS */ return tls; -} \ No newline at end of file +} -- cgit v1.2.3