From: Josh Oguin <josh.og...@oarcorp.com>

This was flagged as an empty for statement by CodeSonar but is actually
unreachable code that should be removed.
---
 cpukit/libcsupport/src/newlibc_exit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libcsupport/src/newlibc_exit.c 
b/cpukit/libcsupport/src/newlibc_exit.c
index 74c547b..fad7f76 100644
--- a/cpukit/libcsupport/src/newlibc_exit.c
+++ b/cpukit/libcsupport/src/newlibc_exit.c
@@ -45,7 +45,7 @@ void _exit(int status)
 
   (*rtems_libio_exit_helper)();
   rtems_shutdown_executive(status);
-  for (;;) ; /* to avoid warnings */
+  /* does not return */
 }
 
 #endif
-- 
1.9.3

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to