This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add a few noreturn keywords


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]