[rtems commit] score: Fix set but not used warning

Sebastian Huber sebh at rtems.org
Fri Aug 21 07:18:49 UTC 2020


Module:    rtems
Branch:    master
Commit:    abf25bcc99e48d3a8d7bed1544f00341ceb66e99
Changeset: http://git.rtems.org/rtems/commit/?id=abf25bcc99e48d3a8d7bed1544f00341ceb66e99

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Aug 21 09:17:47 2020 +0200

score: Fix set but not used warning

---

 cpukit/score/src/threadqenqueue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/src/threadqenqueue.c b/cpukit/score/src/threadqenqueue.c
index 972736f..f0a2845 100644
--- a/cpukit/score/src/threadqenqueue.c
+++ b/cpukit/score/src/threadqenqueue.c
@@ -531,7 +531,7 @@ static bool _Thread_queue_MP_set_callout(
   the_proxy = (Thread_Proxy_control *) the_thread;
   mp_callout = queue_context->mp_callout;
   _Assert( mp_callout != NULL );
-  the_proxy->thread_queue_callout = queue_context->mp_callout;
+  the_proxy->thread_queue_callout = mp_callout;
   return true;
 }
 #endif



More information about the vc mailing list