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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Main does not return, tell this the compiler.

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

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 (
-- 
1.8.1.1.298.ge7eed54

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux