* [U-Boot] compiler warning associated with noreturn
@ 2011-07-27 3:14 Kumar Gala
2011-07-27 7:38 ` Mike Frysinger
0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2011-07-27 3:14 UTC (permalink / raw)
To: u-boot
With the following commit:
commit d2e8b911c0a0661d395ccac72156040702ac842d
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Jun 29 11:58:04 2011 +0000
panic: add noreturn attribute
we now get warnings like the following if we build MPC8540ADS_config:
vsprintf.c: In function 'panic':
vsprintf.c:730:1: warning: 'noreturn' function does return
Seems like do_reset() needs a similar attribute? Or some other change?
- k
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] compiler warning associated with noreturn
2011-07-27 3:14 [U-Boot] compiler warning associated with noreturn Kumar Gala
@ 2011-07-27 7:38 ` Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2011-07-27 7:38 UTC (permalink / raw)
To: u-boot
On Tue, Jul 26, 2011 at 20:14, Kumar Gala wrote:
> With the following commit:
>
> commit d2e8b911c0a0661d395ccac72156040702ac842d
> Author: Mike Frysinger <vapier@gentoo.org>
> Date: ? Wed Jun 29 11:58:04 2011 +0000
>
> ? ?panic: add noreturn attribute
>
> we now get warnings like the following if we build MPC8540ADS_config:
>
> vsprintf.c: In function 'panic':
> vsprintf.c:730:1: warning: 'noreturn' function does return
>
> Seems like do_reset() needs a similar attribute? ?Or some other change?
adding noreturn to do_reset() would be the way to go imo. i'm not
sure if the common helpers would prevent this ?
i'm traveling atm and wont be able to test for a while ...
-mike
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-27 7:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-27 3:14 [U-Boot] compiler warning associated with noreturn Kumar Gala
2011-07-27 7:38 ` Mike Frysinger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.