[U-Boot] [PATCH 3/7] GCC4.6: Squash warnings in yaffs_guts.c

Wolfgang Denk
2011-10-27T22:03:05Z

Dear Marek Vasut,

In message <1319535702-20929-4-git-send-email-marek.vasut@gmail.com> you wrote:
> yaffs_guts.c: In function 'yaffs_ReadDataFromFile':
> yaffs_guts.c:4461:8: warning: 'chunk' may be used uninitialized in this function
> yaffs_guts.c:4462:8: warning: 'start' may be used uninitialized in this function
> yaffs_guts.c: In function 'yaffs_WriteDataToFile':
> yaffs_guts.c:4581:8: warning: 'chunk' may be used uninitialized in this function
> yaffs_guts.c:4582:8: warning: 'start' may be used uninitialized in this function
> yaffs_guts.c: In function 'yaffs_ResizeFile':
> yaffs_guts.c:4816:8: warning: 'newSizeOfPartialChunk' may be used uninitialized
> in this function
> yaffs_guts.c:4817:8: warning: 'newFullChunks' may be used uninitialized in this
> function
>
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Mike Frysinger <vapier@gentoo.org>
> Cc: William Juul <william.juul@tandberg.com>
> ---
> fs/yaffs2/yaffs_guts.c | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 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
I'm frequently appalled by the low regard you Earthmen have for life.
-- Spock, "The Galileo Seven", stardate 2822.3