[U-Boot] [PATCH] Fix a few gcc warnings.

Wolfgang Denk wd at denx.de
Thu May 12 23:18:04 CEST 2011


Dear Joakim Tjernlund,

In message <1303731583-11353-1-git-send-email-Joakim.Tjernlund at transmode.se> you wrote:
> Noticed while building all of mpc8xx. Also
> constify usage string in timer.c
> Warnings fixed are:
> timer.c: In function 'timer':
> timer.c:189: warning: format not a string literal and no format arguments
> timer.c:258: warning: format not a string literal and no format arguments
> atm.c: In function 'atmUnload':
> atm.c:99: warning: array subscript is above array bounds
> atm.c: In function 'atmLoad':
> atm.c:65: warning: array subscript is above array bounds
> codec.c: In function 'codsp_write_pop_int':
> codec.c:678: warning: array subscript is above array bounds
> codec.c: In function 'codsp_write_cop_short':
> codec.c:585: warning: array subscript is above array bounds
> codec.c: In function 'codsp_write_sop_int':
> codec.c:512: warning: array subscript is above array bounds
> 
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
> ---
> 
>  -V3 use puts() and constify usage string in timer.c
> 
>  board/netta/codec.c         |    6 +++---
>  board/siemens/IAD210/atm.c  |    4 ++--
>  examples/standalone/timer.c |    6 +++---
>  3 files changed, 8 insertions(+), 8 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
				 EARTH
			     smog  |   bricks
			 AIR  --  mud  --  FIRE
			soda water |   tequila
				 WATER


More information about the U-Boot mailing list