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.
--
Matthias Bolte
http://photron.blogspot.com