From 0b90ad3dd4e549cfca3416b223974a08fb03fa1c Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 4 Aug 2020 10:37:35 +0900 Subject: [PATCH] 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. --- arch/sim/src/sim/up_exit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sim/src/sim/up_exit.c b/arch/sim/src/sim/up_exit.c index fada99a50d3..4241e6025b5 100644 --- a/arch/sim/src/sim/up_exit.c +++ b/arch/sim/src/sim/up_exit.c @@ -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. */