[rtems commit] score: Fix warning

Sebastian Huber sebh at rtems.org
Tue Sep 27 05:40:02 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Sep 23 10:47:36 2016 +0200

score: Fix warning

---

 cpukit/score/src/threadqops.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/score/src/threadqops.c b/cpukit/score/src/threadqops.c
index f212f25..8652025 100644
--- a/cpukit/score/src/threadqops.c
+++ b/cpukit/score/src/threadqops.c
@@ -1255,6 +1255,7 @@ static void _Thread_queue_Priority_inherit_do_surrender_change(
   );
 }
 
+#if defined(RTEMS_SMP)
 static void _Thread_queue_Priority_inherit_do_surrender_change_2(
   Priority_Aggregation *priority_aggregation,
   bool                  prepend_it,
@@ -1268,6 +1269,7 @@ static void _Thread_queue_Priority_inherit_do_surrender_change_2(
     prepend_it
   );
 }
+#endif
 
 static void _Thread_queue_Priority_inherit_do_surrender(
   Thread_queue_Queue   *queue,



More information about the vc mailing list