cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Warnings: Derefencing pointer does break strict-aliasing rules

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Tue, 26 Jun 2012 10:09:46 +0200

On Tuesday, June 26, 2012 07:46:08 Marc Hoersken wrote:
> 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?

Looks good to me.

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-26