On Tue, Aug 14, 2012 at 10:33:00AM +0200, Mark Kettenis wrote:
> > Date: Tue, 14 Aug 2012 04:12:47 -0400
> > From: Brad Smith <[email protected]>
> > 
> > ../../../../dev/x86emu/x86emu.c:291:1: error: function declared 'noreturn' 
> > should not return [-Werror,-Winvalid-noreturn]
> > 
> > 
> > x86emu_halt_sys: add an (unreached) panic after longjmp
> > 
> > To convince clang that we won't return.
> 
> Perhaps <sys/systm.h> should mark longjmp(9) as __dead?

That also works. I see FreeBSD/NetBSD have done so for longjmp()
for both the kernel and userland headers.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to