bsps/arm: fix nested extern decl. warnings brought by CMSIS files update

This commit is contained in:
Karel Gardas
2023-07-21 17:36:03 +02:00
parent a41611ab4a
commit 49c296b324

View File

@@ -1,3 +1,6 @@
/*
* The file was modified by RTEMS contributors.
*/
/**************************************************************************//**
* @file cmsis_gcc.h
* @brief CMSIS compiler GCC header file
@@ -136,6 +139,10 @@
*/
__STATIC_FORCEINLINE __NO_RETURN void __cmsis_start(void)
{
#ifdef __rtems__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnested-externs"
#endif /* __rtems__ */
extern void _start(void) __NO_RETURN;
typedef struct __copy_table {
@@ -154,6 +161,10 @@ __STATIC_FORCEINLINE __NO_RETURN void __cmsis_start(void)
extern const __zero_table_t __zero_table_start__;
extern const __zero_table_t __zero_table_end__;
#ifdef __rtems__
#pragma GCC diagnostic pop
#endif /* __rtems__ */
for (__copy_table_t const* pTable = &__copy_table_start__; pTable < &__copy_table_end__; ++pTable) {
for(uint32_t i=0u; i<pTable->wlen; ++i) {
pTable->dest[i] = pTable->src[i];