Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] Re: delta cygwin warning
Home

[Freeciv-Dev] Re: delta cygwin warning

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: delta cygwin warning
From: Raimar Falke <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Tue, 2 Dec 2003 21:25:58 +0100

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


[Prev in Thread] Current Thread [Next in Thread]