This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a411ed39 libc/nano: Update to CMSIS repo to 5.9.0
4a411ed39 is described below

commit 4a411ed390c8f262ef2f6baecedafdc4e8267883
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Tue Apr 15 09:14:53 2025 +0200

    libc/nano: Update to CMSIS repo to 5.9.0
    
    CMSIS declares _start function with attribute noreturn
    
    This adds code to prevent warning that _start can return.
    
    Same functionality is already in baselibc.
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
---
 libc/nano/src/start.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libc/nano/src/start.c b/libc/nano/src/start.c
index 2c8835530..7a685ec6b 100644
--- a/libc/nano/src/start.c
+++ b/libc/nano/src/start.c
@@ -45,6 +45,12 @@ void _start(void)
     os_init(mynewt_main);
     os_start();
 #endif
+
+#if !MYNEWT_VAL(SELFTEST)
+    /* _start is noreturn so make sure it never returns except for unittests */
+    while (1) {
+    }
+#endif
 }
 
 __attribute__((weak)) void

Reply via email to