[libvirt] [PATCH] Fix cast error in virsh-host.c

2014-06-19 Thread Roman Bogorodskiy
Build with clang fails on virsh-host.c: virsh-host.c:323:53: error: cast from 'unsigned int *' to 'unsigned long long *' increases required alignment from 4 to 8 [-Werror,-Wcast-align] if (vshCommandOptScaledInt(cmd, "pagesize", (unsigned long long *) pagesize, Fix that by casting pages

Re: [libvirt] [PATCH] Fix cast error in virsh-host.c

2014-06-19 Thread Eric Blake
On 06/19/2014 08:42 AM, Roman Bogorodskiy wrote: > Build with clang fails on virsh-host.c: > > virsh-host.c:323:53: error: cast from 'unsigned int *' to 'unsigned long long > *' increases required alignment from 4 to 8 [-Werror,-Wcast-align] > if (vshCommandOptScaledInt(cmd, "pagesize", (