[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] build: avoid type-punning compiler warning



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]