mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 )
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user