diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-05 11:41:51 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-05 11:41:51 +0000 |
commit | 87e7050bff564820e3337c0653211a8180ef1fc0 (patch) | |
tree | 530f5a9db56d7579fbb3a61806adc709305982e0 /src/console/console.c | |
parent | 28d71b9445ef2774baa5e1f5ad17160d90b0e8bb (diff) |
die() does never return. Annotate it as such.
Any endless loop after die() can be eliminated.
Dereferencing a NULL pointer is bad. die() instead.
Replace endless loops with die().
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4340 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/console/console.c')
-rw-r--r-- | src/console/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console/console.c b/src/console/console.c index aeccc14433..af790de217 100644 --- a/src/console/console.c +++ b/src/console/console.c @@ -92,7 +92,7 @@ void post_code(uint8_t value) } /* Report a fatal error */ -void die(const char *msg) +void __attribute__((noreturn)) die(const char *msg) { printk_emerg("%s", msg); post_code(0xff); |