[U-Boot] [PATCH v3] sandbox: fix compiler warning

Simon Glass sjg at chromium.org
Sat Feb 16 01:06:52 CET 2013


On Thu, Jan 24, 2013 at 4:45 AM, Albert ARIBAUD
<albert.u.boot at aribaud.net> wrote:
> 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.

Applied to x86/master.


More information about the U-Boot mailing list