mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 15:43:15 +00:00
testsuites/*: Address missing field initializer warnings (extensions)
Address missing field initializer warnings. These were rtems_extensions_table declarations with initialization. The initialization was changed to using named fields. Updates #5325.
This commit is contained in:
@@ -44,14 +44,15 @@
|
|||||||
const char rtems_test_name[] = "CPUUSE";
|
const char rtems_test_name[] = "CPUUSE";
|
||||||
|
|
||||||
rtems_extensions_table Extensions = {
|
rtems_extensions_table Extensions = {
|
||||||
NULL, /* task create user extension */
|
.thread_create = NULL, /* task create user extension */
|
||||||
NULL, /* task start user extension */
|
.thread_start = NULL, /* task start user extension */
|
||||||
NULL, /* task restart user extension */
|
.thread_restart = NULL, /* task restart user extension */
|
||||||
NULL, /* task delete user extension */
|
.thread_delete = NULL, /* task delete user extension */
|
||||||
Task_switch, /* task switch user extension */
|
.thread_switch = Task_switch, /* task switch user extension */
|
||||||
NULL, /* task begin user extension */
|
.thread_begin = NULL, /* task begin user extension */
|
||||||
NULL, /* task exitted user extension */
|
.thread_exitted = NULL, /* task exitted user extension */
|
||||||
NULL /* fatal error user extension */
|
.fatal = NULL, /* fatal error user extension */
|
||||||
|
.thread_terminate = NULL /* fatal error user extension */
|
||||||
};
|
};
|
||||||
|
|
||||||
rtems_task Init(
|
rtems_task Init(
|
||||||
|
|||||||
@@ -67,7 +67,17 @@ void Fatal_extension(
|
|||||||
);
|
);
|
||||||
|
|
||||||
#define CONFIGURE_INITIAL_EXTENSIONS \
|
#define CONFIGURE_INITIAL_EXTENSIONS \
|
||||||
{ NULL, NULL, NULL, NULL, NULL, NULL, NULL, Fatal_extension }, \
|
{ \
|
||||||
|
.thread_create = NULL, \
|
||||||
|
.thread_start = NULL, \
|
||||||
|
.thread_restart = NULL, \
|
||||||
|
.thread_delete = NULL, \
|
||||||
|
.thread_switch = NULL, \
|
||||||
|
.thread_begin = NULL, \
|
||||||
|
.thread_exitted = NULL, \
|
||||||
|
.fatal = Fatal_extension, \
|
||||||
|
.thread_terminate = NULL \
|
||||||
|
}, \
|
||||||
RTEMS_TEST_INITIAL_EXTENSION
|
RTEMS_TEST_INITIAL_EXTENSION
|
||||||
|
|
||||||
#include <rtems/confdefs.h>
|
#include <rtems/confdefs.h>
|
||||||
|
|||||||
@@ -114,14 +114,15 @@ static void Fatal_extension(
|
|||||||
|
|
||||||
#define CONFIGURE_INITIAL_EXTENSIONS \
|
#define CONFIGURE_INITIAL_EXTENSIONS \
|
||||||
{ \
|
{ \
|
||||||
NULL, /* create */ \
|
.thread_create = NULL, \
|
||||||
NULL, /* start */ \
|
.thread_start = NULL, \
|
||||||
NULL, /* restart */ \
|
.thread_restart = NULL, \
|
||||||
NULL, /* delete */ \
|
.thread_delete = NULL, \
|
||||||
NULL, /* switch */ \
|
.thread_switch = NULL, \
|
||||||
NULL, /* begin */ \
|
.thread_begin = NULL, \
|
||||||
NULL, /* exitted */ \
|
.thread_exitted = NULL, \
|
||||||
Fatal_extension /* fatal */ \
|
.fatal = Fatal_extension, \
|
||||||
|
.thread_terminate = NULL \
|
||||||
}, \
|
}, \
|
||||||
RTEMS_TEST_INITIAL_EXTENSION
|
RTEMS_TEST_INITIAL_EXTENSION
|
||||||
|
|
||||||
|
|||||||
@@ -48,14 +48,15 @@
|
|||||||
const char rtems_test_name[] = "SP 4";
|
const char rtems_test_name[] = "SP 4";
|
||||||
|
|
||||||
rtems_extensions_table Extensions = {
|
rtems_extensions_table Extensions = {
|
||||||
NULL, /* task create user extension */
|
.thread_create = NULL,
|
||||||
NULL, /* task start user extension */
|
.thread_start = NULL,
|
||||||
NULL, /* task restart user extension */
|
.thread_restart = NULL,
|
||||||
NULL, /* task delete user extension */
|
.thread_delete = NULL,
|
||||||
Task_switch, /* task switch user extension */
|
.thread_switch = Task_switch,
|
||||||
NULL, /* task begin user extension */
|
.thread_begin = NULL,
|
||||||
NULL, /* task exitted user extension */
|
.thread_exitted = NULL,
|
||||||
NULL /* fatal error user extension */
|
.fatal = NULL,
|
||||||
|
.thread_terminate = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
rtems_task Init(
|
rtems_task Init(
|
||||||
|
|||||||
@@ -67,25 +67,27 @@ static bool Task_harmless_extension_true_two(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const rtems_extensions_table Harmless_extensions = {
|
static const rtems_extensions_table Harmless_extensions = {
|
||||||
Task_harmless_extension_true_two,
|
.thread_create = Task_harmless_extension_true_two,
|
||||||
Task_harmless_extension_two,
|
.thread_start = Task_harmless_extension_two,
|
||||||
Task_harmless_extension_two,
|
.thread_restart = Task_harmless_extension_two,
|
||||||
Task_harmless_extension_two,
|
.thread_delete = Task_harmless_extension_two,
|
||||||
Task_harmless_extension_two,
|
.thread_switch = Task_harmless_extension_two,
|
||||||
Task_harmless_extension_one,
|
.thread_begin = Task_harmless_extension_one,
|
||||||
Task_harmless_extension_one,
|
.thread_exitted = Task_harmless_extension_one,
|
||||||
NULL
|
.fatal = NULL,
|
||||||
|
.thread_terminate = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
rtems_extensions_table Extensions = {
|
rtems_extensions_table Extensions = {
|
||||||
Task_create_extension, /* task create user extension */
|
.thread_create = Task_create_extension,
|
||||||
Task_start_extension, /* task start user extension */
|
.thread_start = Task_start_extension,
|
||||||
Task_restart_extension, /* task restart user extension */
|
.thread_restart = Task_restart_extension,
|
||||||
Task_delete_extension, /* task delete user extension */
|
.thread_delete = Task_delete_extension,
|
||||||
NULL, /* task switch user extension */
|
.thread_switch = NULL,
|
||||||
NULL, /* begin user extension */
|
.thread_begin = NULL,
|
||||||
Task_exit_extension, /* task exitted user extension */
|
.thread_exitted = Task_exit_extension,
|
||||||
NULL /* fatal error extension */
|
.fatal = NULL,
|
||||||
|
.thread_terminate = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
rtems_task Init(
|
rtems_task Init(
|
||||||
|
|||||||
@@ -56,14 +56,15 @@ bool task_create(
|
|||||||
}
|
}
|
||||||
|
|
||||||
rtems_extensions_table Extensions = {
|
rtems_extensions_table Extensions = {
|
||||||
task_create, /* task create user extension */
|
.thread_create = task_create,
|
||||||
NULL, /* task start user extension */
|
.thread_start = NULL,
|
||||||
NULL, /* task restart user extension */
|
.thread_restart = NULL,
|
||||||
NULL, /* task delete user extension */
|
.thread_delete = NULL,
|
||||||
NULL, /* task switch user extension */
|
.thread_switch = NULL,
|
||||||
NULL, /* task begin user extension */
|
.thread_begin = NULL,
|
||||||
NULL, /* task exitted user extension */
|
.thread_exitted = NULL,
|
||||||
NULL /* fatal error user extension */
|
.fatal = NULL,
|
||||||
|
.thread_terminate = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
rtems_task Init(
|
rtems_task Init(
|
||||||
|
|||||||
@@ -130,14 +130,15 @@ static void Fatal_extension(
|
|||||||
|
|
||||||
#define CONFIGURE_INITIAL_EXTENSIONS \
|
#define CONFIGURE_INITIAL_EXTENSIONS \
|
||||||
{ \
|
{ \
|
||||||
NULL, /* create */ \
|
.thread_create = NULL, \
|
||||||
NULL, /* start */ \
|
.thread_start = NULL, \
|
||||||
NULL, /* restart */ \
|
.thread_restart = NULL, \
|
||||||
NULL, /* delete */ \
|
.thread_delete = NULL, \
|
||||||
NULL, /* switch */ \
|
.thread_switch = NULL, \
|
||||||
NULL, /* begin */ \
|
.thread_begin = NULL, \
|
||||||
NULL, /* exitted */ \
|
.thread_exitted = NULL, \
|
||||||
Fatal_extension /* fatal */ \
|
.fatal = Fatal_extension, \
|
||||||
|
.thread_terminate = NULL \
|
||||||
}, \
|
}, \
|
||||||
RTEMS_TEST_INITIAL_EXTENSION
|
RTEMS_TEST_INITIAL_EXTENSION
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user