URL:
<http://gna.org/patch/?1860>
Summary: require gcc 3.4 for
__attribute__((warn_unused_result))
Project: Freeciv
Submitted by: kernigh
Submitted on: Tuesday 08/17/2010 at 01:36
Category: general
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
I have been compiling Freeciv with the gcc 3.3.5 (propolice) that comes with
OpenBSD. This version does not support __attribute__((warn_unused_result)),
so gcc emits a warning at every instance of warn_unused_result. I see about
four warnings per .c file.
Documentation says that gcc 3.4 has warn_unused_result
<http://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/Function-Attributes.html> but
gcc 3.3 lacks it
<http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Function-Attributes.html>.
This patch to utility/support.h and utility/mem.h checks for gcc 3.4 and
defines and uses fc__warn_unused_result.
This patch is for S2_2.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tuesday 08/17/2010 at 01:36 Name: p22-less-warnings.diff Size: 2kB
By: kernigh
patch to utility/{support,mem}.h (S2_2)
<http://gna.org/patch/download.php?file_id=9868>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1860>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev