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:
Joel Sherrill
2025-10-14 14:05:23 -05:00
parent edba3942cc
commit 1d08df678b
7 changed files with 74 additions and 57 deletions

View File

@@ -44,14 +44,15 @@
const char rtems_test_name[] = "CPUUSE";
rtems_extensions_table Extensions = {
NULL, /* task create user extension */
NULL, /* task start user extension */
NULL, /* task restart user extension */
NULL, /* task delete user extension */
Task_switch, /* task switch user extension */
NULL, /* task begin user extension */
NULL, /* task exitted user extension */
NULL /* fatal error user extension */
.thread_create = NULL, /* task create user extension */
.thread_start = NULL, /* task start user extension */
.thread_restart = NULL, /* task restart user extension */
.thread_delete = NULL, /* task delete user extension */
.thread_switch = Task_switch, /* task switch user extension */
.thread_begin = NULL, /* task begin user extension */
.thread_exitted = NULL, /* task exitted user extension */
.fatal = NULL, /* fatal error user extension */
.thread_terminate = NULL /* fatal error user extension */
};
rtems_task Init(

View File

@@ -67,7 +67,17 @@ void Fatal_extension(
);
#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
#include <rtems/confdefs.h>