From: Wolfgang Denk Date: Thu, 12 May 2011 23:18:04 +0200 Subject: [U-Boot] [PATCH] Fix a few gcc warnings. In-Reply-To: <1303731583-11353-1-git-send-email-Joakim.Tjernlund@transmode.se> References: <20110424221458.90B6CD5269F@gemini.denx.de> <1303731583-11353-1-git-send-email-Joakim.Tjernlund@transmode.se> Message-ID: <20110512211804.AFBFBD6F24F@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 Joakim Tjernlund, In message <1303731583-11353-1-git-send-email-Joakim.Tjernlund@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 > --- > > -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