PATCH: silence warning in spu/exit.c
Jeff Johnston
jjohnstn@redhat.com
Tue Jan 9 00:45:00 GMT 2007
Ben Elliston wrote:
> It seems this patch was forgotten when submitting a collection of
> patches late last year. Okay for mainline?
>
Yes. Go ahead and check it in.
-- Jeff J.
> 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 (;;)
> + ;
> }
>
>
More information about the Newlib
mailing list