[U-Boot] [PATCH 26/56] board/netta/pcmcia.c: Fix GCC 4.6 build warnings

Wolfgang Denk wd at denx.de
Mon Nov 7 22:13:21 CET 2011


Dear Wolfgang Denk,

In message <1320458160-23136-27-git-send-email-wd at denx.de> you wrote:
> Fix:
> pcmcia.c: In function 'cfg_ports':
> pcmcia.c:151:21: warning: variable 'cp' set but not used
> [-Wunused-but-set-variable]
> pcmcia.c:150:20: warning: variable 'immap' set but not used
> [-Wunused-but-set-variable]
> pcmcia.c: In function 'pcmcia_hardware_enable':
> pcmcia.c:179:25: warning: variable 'sysp' set but not used
> [-Wunused-but-set-variable]
> pcmcia.c:177:21: warning: variable 'cp' set but not used
> [-Wunused-but-set-variable]
> pcmcia.c:176:20: warning: variable 'immap' set but not used
> [-Wunused-but-set-variable]
> pcmcia.c: In function 'pcmcia_hardware_disable':
> pcmcia.c:271:25: warning: variable 'pcmp' set but not used
> [-Wunused-but-set-variable]
> pcmcia.c:270:20: warning: variable 'immap' set but not used
> [-Wunused-but-set-variable]
> pcmcia.c: In function 'pcmcia_voltage_set':
> pcmcia.c:303:9: warning: variable 'sreg' set but not used
> [-Wunused-but-set-variable]
> pcmcia.c:300:21: warning: variable 'cp' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
>  board/netta/pcmcia.c |   76 +++++++++++++++++---------------------------------
>  1 files changed, 26 insertions(+), 50 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 human mind treats a new idea the way the body  treats  a  strange
protein - it rejects it.                                 - P. Medawar


More information about the U-Boot mailing list