URL:
<http://gna.org/bugs/?13719>
Summary: Compilations warnings
Project: Freeciv
Submitted by: pepeto
Submitted on: Thursday 06/18/2009 at 12:37
Category: general
Severity: 2 - Minor
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Operating System: None
_______________________________________________________
Details:
I compiled the last revision of freeciv 2.1. I observed some new warnings
linked with the new hash_*_iterate macro :
control.c: In function 'request_unit_select':
control.c:1254: warning: type-punning to incomplete type might break
strict-aliasing rules
mapview_common.c: In function 'mapdeco_free':
mapview_common.c:2479: warning: type-punning to incomplete type might break
strict-aliasing rules
mapview_common.c: In function 'mapdeco_clear_highlights':
mapview_common.c:2532: warning: type-punning to incomplete type might break
strict-aliasing rules
mapview_common.c: In function 'mapdeco_clear_crosshairs':
mapview_common.c:2584: warning: type-punning to incomplete type might break
strict-aliasing rules
mapview_common.c: In function 'mapdeco_clear_gotoroutes':
mapview_common.c:2733: warning: type-punning to incomplete type might break
strict-aliasing rules
The attached patch remove the warnings on my computer...
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thursday 06/18/2009 at 12:37 Name: strict-aliasing.diff Size: 593B
By: pepeto
<http://gna.org/bugs/download.php?file_id=5997>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13719>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev