score: Fix RTEMS_DEBUG build

Close #5159.
This commit is contained in:
Sebastian Huber
2025-01-08 06:40:31 +01:00
parent d61a739e41
commit 34ba74f4f4
2 changed files with 7 additions and 1 deletions

View File

@@ -335,7 +335,9 @@ static inline void _Priority_Set_action_node(
Priority_Node *node
)
{
#if defined(RTEMS_SMP)
_Assert( aggregation->Action.next == NULL );
#endif
aggregation->Action.node = node;
}
@@ -350,7 +352,9 @@ static inline void _Priority_Set_action_type(
Priority_Action_type type
)
{
#if defined(RTEMS_SMP)
_Assert( aggregation->Action.next == NULL );
#endif
aggregation->Action.type = type;
}
@@ -368,7 +372,9 @@ static inline void _Priority_Set_action(
Priority_Action_type type
)
{
#if defined(RTEMS_SMP)
_Assert( aggregation->Action.next == NULL );
#endif
aggregation->Action.node = node;
aggregation->Action.type = type;
}

View File

@@ -68,7 +68,7 @@ void _Thread_queue_Do_nothing_priority_actions(
Priority_Actions *priority_actions
)
{
#if defined(RTEMS_DEBUG)
#if defined(RTEMS_DEBUG) && defined(RTEMS_SMP)
Priority_Aggregation *priority_aggregation;
priority_aggregation = _Priority_Actions_move( priority_actions );