[U-Boot] [PATCH v2] arm: Correct build error introduced by getenv_ulong() patch

Wolfgang Denk wd at denx.de
Mon Oct 24 21:13:57 CEST 2011


Dear Simon Glass,

In message <1319427875-29965-1-git-send-email-sjg at 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 <sjg at chromium.org>
> ---
> 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


More information about the U-Boot mailing list