mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-28 15:53:06 +08:00
testsuites/sptests/spsimplesched02/init.c: Fix enum conversion warning
The GCC warning -Wenum-conversion flagged assigning the return value from _Objects_Name_to_id_u32 to an rtems_status_code variable. It returns a Status_Control value.
This commit is contained in:
committed by
Gedare Bloom
parent
f1a5c225fe
commit
c9297992a2
@@ -100,16 +100,17 @@ rtems_task Init(
|
||||
(void) argument;
|
||||
|
||||
rtems_status_code status;
|
||||
Status_Control score_status;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
status = _Objects_Name_to_id_u32(
|
||||
score_status = _Objects_Name_to_id_u32(
|
||||
rtems_build_name( 'I', 'D', 'L', 'E' ),
|
||||
RTEMS_SEARCH_LOCAL_NODE,
|
||||
&Idle_id,
|
||||
&_Thread_Information.Objects
|
||||
);
|
||||
rtems_test_assert( status == RTEMS_SUCCESSFUL );
|
||||
rtems_test_assert( score_status == STATUS_SUCCESSFUL );
|
||||
|
||||
/*
|
||||
* Create the semaphore. Then obtain and release the
|
||||
|
||||
Reference in New Issue
Block a user