Skip to content
Snippets Groups Projects
Commit d2e8b911 authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

panic: add noreturn attribute


Since panic() never returns, we should add an appropriate attribute to
let gcc improve optimization around it.

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent afd077bd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment