[U-Boot] [PATCH 40/56] board/mbx8xx/mbx8xx.c: Fix GCC 4.6 build warnings

Wolfgang Denk wd at denx.de
Mon Nov 7 22:15:09 CET 2011


Dear Wolfgang Denk,

In message <1320458160-23136-41-git-send-email-wd at denx.de> you wrote:
> Fix:
> mbx8xx.c: In function 'mbx_init':
> mbx8xx.c:127:15: warning: variable 'refclock' set but not used
> [-Wunused-but-set-variable]
> mbx8xx.c: In function 'board_get_cpufreq':
> mbx8xx.c:231:2: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> mbx8xx.c: In function 'get_reffreq':
> mbx8xx.c:242:2: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
>  board/mbx8xx/mbx8xx.c |   17 ++++++++++++-----
>  1 files changed, 12 insertions(+), 5 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
Hindsight is an exact science.


More information about the U-Boot mailing list