[Freeciv-Dev] Re: delta cygwin warning
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Dec 02, 2003 at 12:43:06PM +0000, Per I. Mathisen wrote:
> packets.c: In function `get_packet_from_connection':
> packets.c:415: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
I searched a bit on the net. This is not a real error. You should see
hundreds in packets_gen.c and also in the old code. Can you please
check?
Could you please with this gcc 3.3 version time two autogames build
with "-O2 -fstrict-aliasing" and with "-O2 -fno-strict-aliasing"?
At
http://linuxfromscratch.org/pipermail/elinks-users/2003-September/000142.html I
found:
> # If gcc is version 3.3 (or higher?) it emits lots of false positive
> # "dereferencing type-punned pointer will break strict-aliasing rules"
> # warnings. Disable them by not doing any strict-aliasing. The
> # alternative is just too ugly. Thanks gcc guys!! ;)
> CFLAGS="$CFLAGS -fno-strict-aliasing"
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"The very concept of PNP is a lovely dream that simply does not translate to
reality. The confusion of manually doing stuff is nothing compared to the
confusion of computers trying to do stuff and getting it wrong, which they
gleefully do with great enthusiasm."
-- Jinx Tigr in the SDM
|
|