[rtems commit] config: Avoid zero-length array
Sebastian Huber
sebh at rtems.org
Mon Oct 28 09:01:51 UTC 2019
Module: rtems
Branch: master
Commit: a7c86ccb25da3254fbe554bc8d47626554bfd3b9
Changeset: http://git.rtems.org/rtems/commit/?id=a7c86ccb25da3254fbe554bc8d47626554bfd3b9
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Oct 4 09:18:55 2019 +0200
config: Avoid zero-length array
Use RTEMS_DEFINE_GLOBAL_SYMBOL_IN_SECTION() instead.
Close #3799.
---
cpukit/include/rtems/confdefs.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h
index 5eb5425..4e6b91a 100644
--- a/cpukit/include/rtems/confdefs.h
+++ b/cpukit/include/rtems/confdefs.h
@@ -1197,8 +1197,10 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
] RTEMS_ALIGNED( CPU_INTERRUPT_STACK_ALIGNMENT )
RTEMS_SECTION( ".rtemsstack.interrupt.begin" );
- const char _ISR_Stack_area_end[ 0 ]
- RTEMS_SECTION( ".rtemsstack.interrupt.end" ) = { };
+ RTEMS_DEFINE_GLOBAL_SYMBOL_IN_SECTION(
+ _ISR_Stack_area_end,
+ ".rtemsstack.interrupt.end"
+ );
#endif
/**
More information about the vc
mailing list