On 07/28/2011 04:11 AM, Matthias Bolte wrote:
2011/7/27 Eric Blake<eblake(a)redhat.com>:
> On RHEL 5, with gcc 4.1.2:
>
> rpc/virnetsaslcontext.c: In function 'virNetSASLSessionUpdateBufSize':
> rpc/virnetsaslcontext.c:396: warning: dereferncing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
>
> * src/rpc/virnetsaslcontext.c (virNetSASLSessionUpdateBufSize):
> Use a union to work around gcc warning.
> ---
> src/rpc/virnetsaslcontext.c | 11 +++++++----
> 1 files changed, 7 insertions(+), 4 deletions(-)
ACK.
Thanks; pushed.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org