[PATCH 2/3] config: Avoid zero-length array
    Sebastian Huber 
    sebastian.huber at embedded-brains.de
       
    Fri Oct  4 07:59:59 UTC 2019
    
    
  
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
 
 /**
-- 
2.16.4
    
    
More information about the devel
mailing list