From: Wolfgang Denk Date: Mon, 24 Oct 2011 21:13:57 +0200 Subject: [U-Boot] [PATCH v2] arm: Correct build error introduced by getenv_ulong() patch In-Reply-To: <1319427875-29965-1-git-send-email-sjg@chromium.org> References: <1319415273-3915-1-git-send-email-sjg@chromium.org> <1319427875-29965-1-git-send-email-sjg@chromium.org> Message-ID: <20111024191357.079A014094B3@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 Simon Glass, In message <1319427875-29965-1-git-send-email-sjg@chromium.org> you wrote: > Commit dc8bbea removed a local variable that is used in most ARM boards. > > Since we want to avoid an 'unused variable' warning with later compilers, > and the #ifdef logic of whether this variable is required is bit painful, > this declares the variable local to the block of code that needs it. > > Signed-off-by: Simon Glass > --- > Changes in v2: > - Tidy up to call getenv() in declaration > > arch/arm/lib/board.c | 12 ++++++++---- > 1 files changed, 8 insertions(+), 4 deletions(-) Applied, thanks. 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 The joys of love made her human and the agonies of love destroyed her. -- Spock, "Requiem for Methuselah", stardate 5842.8