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

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

 



2011/7/27 Eric Blake <eblake@xxxxxxxxxx>:
> 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]