[PATCH] Add a few noreturn keywords
Ulrich Drepper
drepper@gmail.com
Wed Jan 11 15:05:00 GMT 2012
On Wed, Jan 11, 2012 at 09:32, Marek Polacek <polacek@redhat.com> wrote:
> /* Use an alias to avoid warning, as pthread_exit is declared noreturn. */
> +#define return /* value is void */
> FORWARD2 (__pthread_exit, void, (void *retval), (retval), exit (EXIT_SUCCESS))
> strong_alias (__pthread_exit, pthread_exit);
> +#undef return
That's too ugly. Define an alternative FORWARD macro.
More information about the Libc-alpha
mailing list