Re: [libvirt] [PATCH 0/3] Fix aliasing rules warnings with gcc-4.4

2009-02-13 Thread Daniel P. Berrange
On Fri, Feb 13, 2009 at 11:54:08AM +, Mark McLoughlin wrote: > > Hi, > > It seems gcc's strict aliasing rules got stricter with gcc-4.4. > > The basic rule is that two pointers of different types can't be > used to reference the same address in memory. One exception is > using a char* and an

[libvirt] [PATCH 0/3] Fix aliasing rules warnings with gcc-4.4

2009-02-13 Thread Mark McLoughlin
Hi, It seems gcc's strict aliasing rules got stricter with gcc-4.4. The basic rule is that two pointers of different types can't be used to reference the same address in memory. One exception is using a char* and another is when different types are members of a union. I've used unions to fix al