Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-12-14 01:57:10 +0300
committerJeff Johnston <jjohnstn@redhat.com>2006-12-14 01:57:10 +0300
commit057914fee4f6e4781d2c7c3e2dfed3fbf8286635 (patch)
tree3ff40f5f8c6ac6623b9ecc7bb788941a41634b7e /libgloss/libnosys
parentd7d262442cd7e66531f5b1cb2ea495dc1cec2827 (diff)
2006-12-13 Ben Elliston <bje@au.ibm.com>
* libnosys/_exit.c (_exit): Finish with an infinite loop to eliminate a warning about this noreturn function returning.
Diffstat (limited to 'libgloss/libnosys')
-rw-r--r--libgloss/libnosys/_exit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgloss/libnosys/_exit.c b/libgloss/libnosys/_exit.c
index d4dd23239..3fdf7f081 100644
--- a/libgloss/libnosys/_exit.c
+++ b/libgloss/libnosys/_exit.c
@@ -12,4 +12,8 @@ _DEFUN (_exit, (rc),
/* Default stub just causes a divide by 0 exception. */
int x = rc / INT_MAX;
x = 4 / x;
+
+ /* Convince GCC that this function never returns. */
+ for (;;)
+ ;
}