diff mbox

[05/15] init: Fix warning about returning without code

Message ID 585e129b708879bc958f357c71e7fd60f45b289d.1387187847.git.jan.kiszka@siemens.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kiszka Dec. 16, 2013, 9:57 a.m. UTC
Main does not return, tell this the compiler.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 x86/init.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/x86/init.c b/x86/init.c
index 717511e..344dc1c 100644
--- a/x86/init.c
+++ b/x86/init.c
@@ -107,6 +107,7 @@  int main(int argc, char **argv)
 
 	/* The resume code will get us back to main.  */
 	asm("cli; hlt");
+	__builtin_unreachable();
 }
 
 asm (