[U-Boot] [PATCH] sandbox: fix compiler warning
Simon Glass
sjg at chromium.org
Tue Jan 22 22:56:23 CET 2013
On Tue, Jan 22, 2013 at 1:42 PM, Allen Martin <amartin at nvidia.com> wrote:
> Fix compiler warning about control flow reaching end of non void
> function.
>
> Signed-off-by: Allen Martin <amartin at nvidia.com>
Should perhaps mention the commit that adding this warning (e05e5de7 I think)
Acked-by: Simon Glass <sjg at chromium.org>
> ---
> arch/sandbox/cpu/start.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c
> index 7603bf9..5287fd5 100644
> --- a/arch/sandbox/cpu/start.c
> +++ b/arch/sandbox/cpu/start.c
> @@ -122,4 +122,7 @@ int main(int argc, char *argv[])
> * never return.
> */
> board_init_f(0);
> +
> + /* NOTREACHED - board_init_f() does not return */
> + return 0;
> }
> --
> 1.7.10.4
>
More information about the U-Boot
mailing list