diff options
author | Karel Gardas <karel@functional.vision> | 2023-07-21 17:36:03 +0200 |
---|---|---|
committer | Karel Gardas <karel@functional.vision> | 2023-07-28 22:15:10 +0200 |
commit | 49c296b3248f6c63ba1980029a0e16f0c5e43485 (patch) | |
tree | e4cc372150c053a4e860d1c24a30bd930c18ea49 /bsps/arm | |
parent | bsps/irq: Remove unused parameter (diff) | |
download | rtems-49c296b3248f6c63ba1980029a0e16f0c5e43485.tar.bz2 |
bsps/arm: fix nested extern decl. warnings brought by CMSIS files update
Diffstat (limited to 'bsps/arm')
-rw-r--r-- | bsps/arm/include/cmsis_gcc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bsps/arm/include/cmsis_gcc.h b/bsps/arm/include/cmsis_gcc.h index 4f0762d6dc..f8267ded0d 100644 --- a/bsps/arm/include/cmsis_gcc.h +++ b/bsps/arm/include/cmsis_gcc.h @@ -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]; |