summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-06-29 11:58:04 +0000
committerWolfgang Denk <wd@denx.de>2011-07-26 16:54:22 +0200
commitd2e8b911c0a0661d395ccac72156040702ac842d (patch)
tree26e5ad767254f95cd94c15dbc0ca9654f7c54653 /include/common.h
parentafd077bd14c2b198ff0862c29b621667c55db11d (diff)
downloadu-boot-imx-d2e8b911c0a0661d395ccac72156040702ac842d.zip
u-boot-imx-d2e8b911c0a0661d395ccac72156040702ac842d.tar.gz
u-boot-imx-d2e8b911c0a0661d395ccac72156040702ac842d.tar.bz2
panic: add noreturn attribute
Since panic() never returns, we should add an appropriate attribute to let gcc improve optimization around it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 3113580..6061643 100644
--- a/include/common.h
+++ b/include/common.h
@@ -653,7 +653,7 @@ int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
unsigned long long simple_strtoull(const char *cp,char **endp,unsigned int base);
long simple_strtol(const char *cp,char **endp,unsigned int base);
void panic(const char *fmt, ...)
- __attribute__ ((format (__printf__, 1, 2)));
+ __attribute__ ((format (__printf__, 1, 2), noreturn));
int sprintf(char * buf, const char *fmt, ...)
__attribute__ ((format (__printf__, 2, 3)));
int vsprintf(char *buf, const char *fmt, va_list args);