[U-Boot] [PATCH v3] sandbox: fix compiler warning
Albert ARIBAUD
albert.u.boot at aribaud.net
Thu Jan 24 13:45:34 CET 2013
Hi Allen,
On Wed, 23 Jan 2013 13:05:27 -0800, Allen Martin <amartin at nvidia.com>
wrote:
> > Shouldn't the function be given '__attribute__((noreturn))' rather than
> > adding a non-executed 'return 0' to it?
> >
>
> The function in question is sandbox main(), and it can return if there
> was an error prior to calling board_init_f(). Here's the whole
> function for context:
>
> int main(int argc, char *argv[]) [...]
Makes sense, thanks.
> -Allen
Amicalement,
--
Albert.
More information about the U-Boot
mailing list