From: Wolfgang Denk Date: Fri, 09 Dec 2011 10:50:36 +0100 Subject: [U-Boot] [PATCH 02/11] MIPS: board.c: fix warning if CONFIG_CMD_NET is not defined In-Reply-To: <1322143076-20349-3-git-send-email-daniel.schwierzeck@googlemail.com> References: <1322143076-20349-1-git-send-email-daniel.schwierzeck@googlemail.com> <1322143076-20349-3-git-send-email-daniel.schwierzeck@googlemail.com> Message-ID: <20111209095036.0F5CD1EFED8@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Daniel Schwierzeck, In message <1322143076-20349-3-git-send-email-daniel.schwierzeck@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.] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I was playing poker the other night... with Tarot cards. I got a full house and 4 people died. - Steven Wright