[U-Boot] [PATCH 2/2] Fix warnings in yaffs

Wolfgang Denk wd at denx.de
Wed Nov 16 21:39:27 CET 2011


Dear Simon Glass,

In message <1321417027-5639-2-git-send-email-sjg at chromium.org> you wrote:
> Sorry if this is already fixed somewhere - I could not find it.
> 
> This fixes the warnings show below.
> 
> yaffs_tagscompat.c: In function 'yaffs_TagsCompatabilityReadChunkWithTagsFromNAND':
> yaffs_tagscompat.c:151: warning: dereferencing pointer 'tu' does break strict-aliasing rules
> yaffs_tagscompat.c:150: warning: dereferencing pointer 'tu' does break strict-aliasing rules
> yaffs_tagscompat.c:149: warning: dereferencing pointer 'tu' does break strict-aliasing rules
> yaffs_tagscompat.c:148: warning: dereferencing pointer 'tu' does break strict-aliasing rules
> yaffs_tagscompat.c:147: warning: dereferencing pointer 'tu' does break strict-aliasing rules
> yaffs_tagscompat.c:146: warning: dereferencing pointer 'tu' does break strict-aliasing rules
> yaffs_tagscompat.c:145: warning: dereferencing pointer 'tu' does break strict-aliasing rules
> yaffs_tagscompat.c:144: warning: dereferencing pointer 'tu' does break strict-aliasing rules
> yaffs_tagscompat.c:141: note: initialized from here
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>  fs/yaffs2/yaffs_tagscompat.c |   15 +++++++--------
>  1 files changed, 7 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
But the only way of discovering the limits  of  the  possible  is  to
venture a little way past them into the impossible.
                         - _Profiles of the Future_ (1962; rev. 1973)
                  ``Hazards of Prophecy: The Failure of Imagination''


More information about the U-Boot mailing list