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