* Farooq Mela <[EMAIL PROTECTED]> [010304 12:14] wrote:
> Alfred Perlstein wrote:
> 
> > Is '__dead2' a GNU C thing?  or is in any sort of standard?
> 
> See /usr/include/sys/cdefs.h
> 
> __dead2 is defined to __attribute__((__noreturn__)) if a suitable
> version of GCC is being used.
>  
> > Generally there's some resistance to putting GNU C specific
> > code into the base system, is there a portable way to do this?
> 
> It's not actually gcc-specific code, its more of a hint to the compiler
> to not warn about something like, main() "falling off the end" when
> there is actually an exit(0); at the end of it. If GCC knows exit()
> never returns to its caller it doesnt warn.

I understood what it did, I just needed some reference to make sure
it was being used in other places as an acceptable option.

Thanks, this is what I was expecting you to provide, I'll commit
the fix rsn.

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to