From ccd54344d904b657123e4e4ba795a32212382be2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 7 Jan 2016 09:55:45 +0100 Subject: score: Introduce Thread_Entry_information This avoids potential dead code in _Thread_Handler(). It gets rid of the dangerous function pointer casts. Update #2514. --- testsuites/sptests/sp54/init.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'testsuites/sptests/sp54/init.c') diff --git a/testsuites/sptests/sp54/init.c b/testsuites/sptests/sp54/init.c index 97dffa239f..3b0d4589a9 100644 --- a/testsuites/sptests/sp54/init.c +++ b/testsuites/sptests/sp54/init.c @@ -22,12 +22,7 @@ const char rtems_test_name[] = "SP 54"; -/* forward declarations to avoid warnings */ -rtems_task Init(rtems_task_argument argument); - -rtems_task Init( - rtems_task_argument ignored -) +static void *Init( uintptr_t ignored ) { rtems_status_code status; rtems_task_priority pri; @@ -68,7 +63,7 @@ rtems_task Init( * In this application, the initialization task performs the system * initialization and then transforms itself into the idle task. */ -#define CONFIGURE_IDLE_TASK_BODY (Thread_Entry_numeric) Init +#define CONFIGURE_IDLE_TASK_BODY Init #define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION /* -- cgit v1.2.3