[ipxe-devel] [PATCH] fix compile error in myri10ge_command with gcc4.7
Michael Brown
mbrown at fensystems.co.uk
Fri Mar 16 16:47:49 UTC 2012
On Friday 16 Mar 2012 13:46:51 Olaf Hering wrote:
> The copy of ipxe used during Xen tools build fails to compile with gcc
> 4.7:
> drivers/net/myri10ge.c: In function 'myri10ge_command':
> drivers/net/myri10ge.c:308:3: error: dereferencing type-punned pointer will
> break strict-aliasing rules [-Werror=strict-aliasing]
> drivers/net/myri10ge.c:310:2: error: dereferencing type-punned pointer
> will break strict-aliasing rules [-Werror=strict-aliasing]
>
> This patch simply turns the pad array into quantities of u32.
> If thats not the right fix due to hardware limitations, I can provide a
> different patch.
Applied, thanks!
http://git.ipxe.org/ipxe.git/commitdiff/0e81ff2
Michael
More information about the ipxe-devel
mailing list