[ipxe-devel] error: dereferencing pointer ‘pos’ does break strict-aliasing rules

Michael Brown mbrown at fensystems.co.uk
Fri May 4 17:02:38 UTC 2012


On Friday 04 May 2012 17:26:19 Alex Davies wrote:
> There is a regression since 838a76a0426844e918d12ae0d2e2ee7622a0eca6; I get
> the following on building ipxe
> 
> root at cer-hall1:/usr/src/ipxe-793b8b0/src# make bin/undionly.kpxe
> EMBED=xxx.ipxe
> 
>   [BUILD] bin/list_test.o
> 
> cc1: warnings being treated as errors
> 
> tests/list_test.c: In function ‘list_test_exec’:
> 
> tests/list_test.c:429: error: dereferencing pointer ‘pos’ does break
> strict-aliasing rules

Interesting.  I am unable to reproduce this error.  Could you test the 
attached patch, and see if that inhibits the warning?

Thanks,

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipxe-list-test.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20120504/972baa22/attachment.bin>


More information about the ipxe-devel mailing list