[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] build: avoid type-punning compiler warning
- From: Matthias Bolte <matthias bolte googlemail com>
- To: Eric Blake <eblake redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] [PATCH] build: avoid type-punning compiler warning
- Date: Thu, 28 Jul 2011 12:11:32 +0200
2011/7/27 Eric Blake <eblake 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.
--
Matthias Bolte
http://photron.blogspot.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]