testsuites/*: Fix old style declaration

Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
This commit is contained in:
Joel Sherrill
2025-09-02 10:35:56 -05:00
parent a162a5cdcf
commit 0dc1f06dbc
4 changed files with 4 additions and 4 deletions

View File

@@ -521,7 +521,7 @@ static int rdwt_tftp_client_file(
void **tftp_handle
)
{
const static size_t buffer_size = 4001;
static const size_t buffer_size = 4001;
char *data_buffer;
int res = 0;
ssize_t i;

View File

@@ -93,7 +93,7 @@ struct taskSwitchLog {
extern struct taskSwitchLog taskSwitchLog[];
extern int taskSwitchLogIndex;
volatile extern int testsFinished;
extern volatile int testsFinished;
/* end of include file */

View File

@@ -472,7 +472,7 @@ static const char * const * const RtemsTaskReqConstruct_PreDesc[] = {
typedef RtemsTaskReqConstruct_Context Context;
static volatile _Thread_local int tls_object;
_Thread_local static volatile int tls_object;
#define MAX_TLS_SIZE RTEMS_ALIGN_UP( 128, RTEMS_TASK_STORAGE_ALIGNMENT )

View File

@@ -103,7 +103,7 @@ typedef struct {
static AcfgValFatalTooLargeTlsSize_Context
AcfgValFatalTooLargeTlsSize_Instance;
static volatile _Thread_local uint8_t large_tls_object[ RTEMS_TASK_STORAGE_ALIGNMENT + 1 ];
_Thread_local static volatile uint8_t large_tls_object[ RTEMS_TASK_STORAGE_ALIGNMENT + 1 ];
static volatile bool shall_not_load_the_value;