John Levon wrote:

> On Fri, Oct 31, 2003 at 03:24:10PM +0000, Angus Leeming wrote:
> 
>> If I were to compile this function with -DNDEBUG, I'd get a
>> compiler warning about 'control reaches the end of a non-void
>> function'. It seems ugly to shove a 'return arbitrary_value;' after
>> the assert. Is there Another Way?
> 
> There's no other way without adding an assert_fail() or somesuch
> that has attribute__((noreturn)) on it ...

Ok. Thanks. What would happen if I get through to the 
do-almost-nothing-but-set-attribute-noreturn assert?

-- 
Angus

Reply via email to