curl-library
Re: Warnings: Derefencing pointer does break strict-aliasing rules
From: Marc Hoersken <info_at_marc-hoersken.de>
Date: Tue, 26 Jun 2012 07:46:08 +0200
Received on 2012-06-26
Date: Tue, 26 Jun 2012 07:46:08 +0200
Hello everyone,
I took another look at the problem source and found the following
stackoverflow question and answer:
http://stackoverflow.com/a/1432959/834537
This seems to be the best solution to this problem. I applied it to
sockaddr.h in the current master and it does resolve the warnings
mentioned before.
I tested it on Linux x64 with warnings enabled and successfully
compiled it there and on Windows 7 using VC10.
This time I actually verified that the warnings are really gone. :-)
What do you think about this solution?
Best regards,
Marc
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- application/octet-stream attachment: 0001-sockaddr.h-Fixed-dereferencing-pointer-breakin-stric.patch