diff options
| author | Mikhail Romanko <me@blankhex.com> | 2024-06-21 23:14:54 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2024-06-21 23:14:54 +0300 |
| commit | a99724e93446c96581d379a3cecc2da7453acaa6 (patch) | |
| tree | 69ec3311b801fd7fd6f29c99e57c629a64061fb1 | |
| parent | 87b34d57be7d7c4d8fd23b2635ee7f530a79bd00 (diff) | |
| download | bhlib-old-a99724e93446c96581d379a3cecc2da7453acaa6.tar.gz | |
Remove not used variable from POSIX thread code
| -rw-r--r-- | src/thread_posix.c | 5 |
1 files 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 +} |
