Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] (PR#7164) Strict aliasing warning in common/packets.c
Home

[Freeciv-Dev] (PR#7164) Strict aliasing warning in common/packets.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#7164) Strict aliasing warning in common/packets.c
From: "Guest" <rt-guest@xxxxxxxxxxx>
Date: Sat, 27 Dec 2003 11:27:39 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7164 >

Hi,

The compilation of common/packets.c gives a warning (dereferencing
type-punned pointer will break strict-aliasing rules) at line 415. 

The attached patch fixes the problem.

-- 
Gustavo R. Montesino

Attachment: warn-aliasing.patch
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#7164) Strict aliasing warning in common/packets.c, Guest <=