[PATCH 07/20] libcsupport/src/newlibc_exit.c: Remove dead code
Joel Sherrill
joel.sherrill at oarcorp.com
Tue Nov 25 23:02:35 UTC 2014
From: Josh Oguin <josh.oguin at 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
More information about the devel
mailing list