[U-Boot] [PATCH 02/11] MIPS: board.c: fix warning if CONFIG_CMD_NET is not defined
Daniel Schwierzeck
daniel.schwierzeck at googlemail.com
Fri Dec 9 13:34:12 CET 2011
Hi Wolfgang,
On Fri, Dec 9, 2011 at 10:50 AM, Wolfgang Denk <wd at denx.de> wrote:
> Dear Daniel Schwierzeck,
>
> In message <1322143076-20349-3-git-send-email-daniel.schwierzeck at googlemail.com> you wrote:
>> board.c: In function 'board_init_r':
>> board.c:280:8: warning: unused variable 's'
> ...
>> /* Initialize from environment */
>> load_addr = getenv_ulong("loadaddr", 16, load_addr);
>> #if defined(CONFIG_CMD_NET)
>> - s = getenv("bootfile");
>> + const char *s = getenv("bootfile");
>> if (s)
>> copy_filename(BootFile, s, sizeof(BootFile));
>
> We don't allow declarations in the middle of the code.
>
> [This issue has also been fixed since, so no further actiuvity needed.]
ok, I marked my patch in patchwork as superseded.
--
Thanks and regards,
Daniel
More information about the U-Boot
mailing list