cURL / Mailing Lists / curl-library / Single Mail

curl-library

Warnings: Derefencing pointer does break strict-aliasing rules

From: Marc Hoersken <info_at_marc-hoersken.de>
Date: Mon, 11 Jun 2012 09:24:48 +0200

Hello everyone,

I am currently taking a look at the results and especially warnings
from the curl autobuillds.

For example this one here contains quite a lot of dereferencing
pointer warnings:

http://curl.haxx.se/dev/log.cgi?id=20120610222524-3999#prob1

../.././lib/ftp.c:1254: warning: dereferencing pointer 'sa' does break
strict-aliasing rules
../.././lib/ftp.c:1089: warning: dereferencing pointer 'sa' does break
strict-aliasing rules
../.././lib/ftp.c:1085: warning: dereferencing pointer 'sa' does break
strict-aliasing rules
../.././lib/ftp.c:1082: warning: dereferencing pointer 'sa' does break
strict-aliasing rules
../.././lib/ftp.c:1141: warning: dereferencing pointer 'sa' does break
strict-aliasing rules
../.././lib/ftp.c:1227: warning: dereferencing pointer 'sa' does break
strict-aliasing rules
../.././lib/ftp.c:1231: warning: dereferencing pointer 'sa' does break
strict-aliasing rules
../.././lib/ftp.c:961: note: initialized from here
../.././lib/ftp.c:1145: warning: dereferencing pointer 'sa6' does
break strict-aliasing rules
../.././lib/ftp.c:1237: warning: dereferencing pointer 'sa6' does
break strict-aliasing rules
../.././lib/ftp.c:964: note: initialized from here
../.././lib/ftp.c:1142: warning: dereferencing pointer 'sa4' does
break strict-aliasing rules
../.././lib/ftp.c:1233: warning: dereferencing pointer 'sa4' does
break strict-aliasing rules
../.././lib/ftp.c:962: note: initialized from here

http://curl.haxx.se/dev/log.cgi?id=20120610222524-3999#prob15

../.././lib/connect.c:377: warning: dereferencing pointer 'si6' does
break strict-aliasing rules
../.././lib/connect.c:378: warning: dereferencing pointer 'si6' does
break strict-aliasing rules
../.././lib/connect.c:401: warning: dereferencing pointer 'si6' does
break strict-aliasing rules
../.././lib/connect.c:402: warning: dereferencing pointer 'si6' does
break strict-aliasing rules
../.././lib/connect.c:439: warning: dereferencing pointer 'si6' does
break strict-aliasing rules
../.././lib/connect.c:260: note: initialized from here
../.././lib/connect.c:386: warning: dereferencing pointer 'si4' does
break strict-aliasing rules
../.././lib/connect.c:387: warning: dereferencing pointer 'si4' does
break strict-aliasing rules
../.././lib/connect.c:408: warning: dereferencing pointer 'si4' does
break strict-aliasing rules
../.././lib/connect.c:409: warning: dereferencing pointer 'si4' does
break strict-aliasing rules
../.././lib/connect.c:436: warning: dereferencing pointer 'si4' does
break strict-aliasing rules
../.././lib/connect.c:258: note: initialized from here
../.././lib/connect.c:435: warning: dereferencing pointer 'sock' does
break strict-aliasing rules
../.././lib/connect.c:256: note: initialized from here

I have searched around and found this related stackoverflow question:
http://stackoverflow.com/questions/3464888/

It seems like this is a gcc problem that cannot be fixed easily.
Anyway, I just wanted to inform you about these warnings and ask if
anyone knows a solution for them.

Best regards,
Marc
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-11