[U-Boot] [PATCH] dlmalloc.c: Fix gcc alias warning

Joakim Tjernlund joakim.tjernlund at transmode.se
Thu Oct 14 08:53:10 CEST 2010


Alexander Stein <alexander.stein at systec-electronic.com> wrote on 
2010/10/14 08:50:29:
> 
> Hello,
> 
> On Thursday 14 October 2010, 08:41:20 Joakim Tjernlund wrote:
> > Fix these warnings:
> > dlmalloc.c: In function 'free':
> > dlmalloc.c:2507: warning: dereferencing pointer '({anonymous})' does 
break
> > strict-aliasing rules dlmalloc.c:2507: warning: dereferencing pointer
> > '({anonymous})' does break strict-aliasing rules dlmalloc.c:2507: 
warning:
> > dereferencing pointer '({anonymous})' does break strict-aliasing rules

> 
> Though I don't know the actual code why not use a union instead?

Me neither, you are welcome to have a crack at it.

      Jocke


More information about the U-Boot mailing list