On 12/12/2013 11:55 AM, Michal Privoznik wrote:
> int detail;
> -};
> +} ATTRIBUTE_PACKED;
(What an ancient e-mail :-) )
1970 was how many years before libvirt was even started?
I still think ATTRIBUTE_PACKED in a parent class is wrong; it forces the
children to be packed, and may make it impossible to implement atomic
operations on a child member that was supposed to be aligned. I'd much
rather fix the alignment in the parent class using portable constructs
than a compiler-specific non-alignment directive.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org