Summary: require gcc 3.4 for
                 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: 



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

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)


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to