From c232b378b8f688cdd4691bb558d9d23fa7791ec9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 19 Feb 2018 13:05:57 -0600 Subject: confdefs.h: Minor rework to avoid warnings when CONFIGURE_HAS_OWN_INIT_TABLE CONFIGURE_HAS_OWN_INIT_TABLE was used both with and without defining CONFIGURE_RTEMS_INIT_TASKS_TABLE. This rework allows it to work both ways without warnings. --- cpukit/include/rtems/confdefs.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index f1c817d403..be937ab6c0 100755 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -1378,19 +1378,15 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; * This group contains the elements needed to define the Classic API * Initialization Tasks Table. * - * Default User Initialization Task Table. This table guarantees that - * one user initialization table is defined. - */ -#ifdef CONFIGURE_RTEMS_INIT_TASKS_TABLE - -#ifdef CONFIGURE_HAS_OWN_INIT_TASK_TABLE - -/* - * The user is defining their own table information and setting the + * Default User Initialization Task Table. This table guarantees that + * one user initialization table is defined. + * + * WHEN CONFIGURE_HAS_OWN_INIT_TASK_TABLE is defined, the user is + * responsible for defining their own table information and setting the * appropriate variables. */ - -#else +#if defined(CONFIGURE_RTEMS_INIT_TASKS_TABLE) && \ + !defined(CONFIGURE_HAS_OWN_INIT_TASK_TABLE) /** * When using the default Classic API Initialization Tasks Table, this is @@ -1485,9 +1481,14 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #define CONFIGURE_INIT_TASK_TABLE_SIZE \ RTEMS_ARRAY_SIZE(CONFIGURE_INIT_TASK_TABLE) -#endif /* CONFIGURE_HAS_OWN_INIT_TASK_TABLE */ - #else /* CONFIGURE_RTEMS_INIT_TASKS_TABLE */ +#ifdef CONFIGURE_HAS_OWN_INIT_TASK_TABLE + +/* + * The user application is responsible for defining everything + * when CONFIGURE_HAS_OWN_INIT_TABLE is defined. + */ +#else /* not using standard or providing own Init Task Table */ /* * This is the name of the Initialization Task when none is configured. @@ -1504,6 +1505,8 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; */ #define CONFIGURE_INIT_TASK_STACK_SIZE 0 +#endif /* CONFIGURE_HAS_OWN_INIT_TASK_TABLE */ + #endif /**@}*/ /* end of Classic API Initialization Tasks Table */ -- cgit v1.2.3