Re: [libvirt] [PATCH 3/7] Use VIR_ALLOC_VAR instead of VIR_ALLOC_N for creating virObject

2013-04-05 Thread Eric Blake
On 04/03/2013 09:06 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > The current way virObject instances are allocated using > VIR_ALLOC_N causes alignment warnings > > util/virobject.c: In function 'virObjectNew': > util/virobject.c:195:11: error: cast increases required alignment

[libvirt] [PATCH 3/7] Use VIR_ALLOC_VAR instead of VIR_ALLOC_N for creating virObject

2013-04-03 Thread Daniel P. Berrange
From: "Daniel P. Berrange" The current way virObject instances are allocated using VIR_ALLOC_N causes alignment warnings util/virobject.c: In function 'virObjectNew': util/virobject.c:195:11: error: cast increases required alignment of target type [-Werror=cast-align] Changing to use VIR_ALLOC