mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 15:37:23 +00:00
arch/sim/src/sim/up_exit.c: Appease a clang-check warning
clang-check complained like the following.
While this is not a real bug, it's easy to appease.
sim/up_exit.c:68:21: warning: Value stored to 'tcb' during its initialization is never read
FAR struct tcb_s *tcb = this_task();
^~~ ~~~~~~~~~~~
1 warning generated.
This commit is contained in:
parent
123a31e3a2
commit
0b90ad3dd4
1 changed files with 2 additions and 2 deletions
|
|
@ -65,9 +65,9 @@
|
|||
|
||||
void up_exit(int status)
|
||||
{
|
||||
FAR struct tcb_s *tcb = this_task();
|
||||
FAR struct tcb_s *tcb;
|
||||
|
||||
sinfo("TCB=%p exiting\n", tcb);
|
||||
sinfo("TCB=%p exiting\n", this_task());
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue