Skip to contentSkip to conversation

xen: arm: mark early_panic as a noreturn function

PATCH New Ian Campbell 1 participant 1 message Dec 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: arm: mark early_panic as a noreturn function

Otherwise gcc complains about variables being used when not initialised when in fact that point is never reached.

There aren't any instances of this in tree right now, I noticed this while developing another patch.

---
 xen/include/asm-arm/early_printk.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
xen/include/asm-arm/early_printk.h +1 -1
index f45f21e..a770d4a 100644
@@ -15,7 +15,7 @@
 #ifdef EARLY_UART_ADDRESS
 
 void early_printk(const char *fmt, ...);
-void early_panic(const char *fmt, ...);
+void early_panic(const char *fmt, ...) __attribute__((noreturn));
 
 #else
 
Signature · 1 line
1.7.9.1