mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
panic: remove warning "'noreturn' function does return"
since commit
commit d2e8b911c0
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Jun 29 11:58:04 2011 +0000
panic: add noreturn attribute
I see the following warnings:
vsprintf.c: In function 'panic':
vsprintf.c:730: warning: 'noreturn' function does return
for nearly all boards. This patch fixes this warning.
Signed-off-by: Heiko Schocher <hs@denx.de>
cc: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
eaf5e65af5
commit
40e018815d
1 changed files with 2 additions and 0 deletions
|
@ -727,4 +727,6 @@ void panic(const char *fmt, ...)
|
||||||
udelay (100000); /* allow messages to go out */
|
udelay (100000); /* allow messages to go out */
|
||||||
do_reset (NULL, 0, 0, NULL);
|
do_reset (NULL, 0, 0, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
while (1)
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue