../../../../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.

>From oga@Bitrig


Index: x86emu.c
===================================================================
RCS file: /home/cvs/src/sys/dev/x86emu/x86emu.c,v
retrieving revision 1.5
diff -u -p -r1.5 x86emu.c
--- x86emu.c    17 Feb 2010 15:09:47 -0000      1.5
+++ x86emu.c    14 Aug 2012 07:33:52 -0000
@@ -288,6 +288,7 @@ x86emu_halt_sys(struct x86emu *emu)
 #else
        longjmp(emu->exec_state, 1);
 #endif
+       panic("%s: longjmp returned", __func__);
 }
 
 /*

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

Reply via email to