[PATCH] rtems: No-return _arc4random_getentropy_fail()

Sebastian Huber sebastian.huber@embedded-brains.de
Wed Jul 2 07:39:29 GMT 2025


The _arc4random_getentropy_fail() function does not return.  Mark it as
such.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
 newlib/libc/sys/rtems/include/machine/_arc4random.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/sys/rtems/include/machine/_arc4random.h b/newlib/libc/sys/rtems/include/machine/_arc4random.h
index 7ef296899..83b8493f1 100644
--- a/newlib/libc/sys/rtems/include/machine/_arc4random.h
+++ b/newlib/libc/sys/rtems/include/machine/_arc4random.h
@@ -28,7 +28,7 @@
 
 __BEGIN_DECLS
 
-void _arc4random_getentropy_fail(void);
+_Noreturn void _arc4random_getentropy_fail(void);
 
 #define _ARC4RANDOM_GETENTROPY_FAIL() _arc4random_getentropy_fail()
 
-- 
2.43.0



More information about the Newlib mailing list