[rtems commit] libcsupport/src/newlibc_exit.c: Remove dead code

Joel Sherril joel at rtems.org
Wed Nov 26 13:55:50 UTC 2014


Module:    rtems
Branch:    master
Commit:    72f63eeff04020b992cf7d7235b066f4c6b3a824
Changeset: http://git.rtems.org/rtems/commit/?id=72f63eeff04020b992cf7d7235b066f4c6b3a824

Author:    Josh Oguin <josh.oguin at oarcorp.com>
Date:      Wed Nov 19 14:34:40 2014 -0600

libcsupport/src/newlibc_exit.c: Remove dead code

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



More information about the vc mailing list