From a7c86ccb25da3254fbe554bc8d47626554bfd3b9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 4 Oct 2019 09:18:55 +0200 Subject: 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 5eb5425283..4e6b91ad2c 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 /** -- cgit v1.2.3