bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnumach cleanup 10 second attempt


From: Samuel Thibault
Subject: Re: Gnumach cleanup 10 second attempt
Date: Mon, 21 Jul 2008 17:40:59 +0100
User-agent: Mutt/1.5.12-2006-07-14

Barry deFreese, le Mon 21 Jul 2008 12:30:36 -0400, a écrit :
> Samuel Thibault wrote:
> >See the comment, they shouldn't be reached, so yes you can, but also add
> >noreturn to the functions that are called just before, etc. ;)
>
> OK I'm getting closer.  I added noreturn to exception and 
> exception_raise but I'm still getting the warning that exception_raise 
> is returning.

There are return statements with /*NOTREACHED*/ above to drop again and
functions to add noreturn to again, yes, exception_raise_continue_slow
for instance, etc., etc., etc.  Yes you'll probably have to add noreturn
to a big bunch of functions, that's fine since they're supposed to be.

> I thought maybe it was assert()

assert() doesn't "trigger" return.

> but Asser() has __attribute__ ((noreturn)).

That's not at stake here since there's an if before it in the assert()
macro

Samuel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]