This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
PATCH: silence warning in spu/exit.c
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: newlib at sourceware dot org
- Date: Tue, 09 Jan 2007 09:57:00 +1100
- Subject: PATCH: silence warning in spu/exit.c
It seems this patch was forgotten when submitting a collection of
patches late last year. Okay for mainline?
Cheers, Ben
2007-01-09 Ben Elliston <bje@au.ibm.com>
* spu/exit.c (_exit): Finish with an infinite loop to eliminate a
warning about this noreturn function returning.
Index: spu/exit.c
===================================================================
RCS file: /cvs/src/src/libgloss/spu/exit.c,v
retrieving revision 1.4
diff -u -r1.4 exit.c
--- spu/exit.c 11 Dec 2006 00:04:00 -0000 1.4
+++ spu/exit.c 8 Jan 2007 22:56:41 -0000
@@ -42,4 +42,7 @@
"1:\n"
" stop 0x2000\n"
: : "r" (rc) );
+
+ for (;;)
+ ;
}