Summary: variable 'punit' set but not used in citytools.c
                 Project: Freeciv
            Submitted by: syntron
            Submitted on: Mon 04 Mar 2013 10:35:16 PM CET
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: svn22473
         Discussion Lock: Any
        Operating System: None
         Planned Release: 



I get the following error on opensuse 12.3 (see
The build uses '--enable-debug=yes'.

[  608s] citytools.c: In function 'transfer_city_units':
[  608s] citytools.c:724:3: error: variable 'punit' set but not used
[  608s] cc1: all warnings being treated as errors
[  608s] make[3]: *** [citytools.lo] Error 1
[  608s] make[3]: Leaving directory
[  608s] make[2]: *** [all-recursive] Error 1
[  608s] make[2]: Leaving directory
[  608s] make[1]: *** [all-recursive] Error 1
[  608s] make[1]: Leaving directory
[  608s] make: *** [all] Error 2
[  608s] error: Bad exit status from /var/tmp/rpm-tmp.4s0bpV (%build)

It's the following code:

#ifdef DEBUG
  unit_list_iterate(pcity->units_supported, punit) {
    fc_assert(punit->homecity == pcity->id);
    fc_assert(unit_owner(punit) == pplayer);
  } unit_list_iterate_end;
#endif /* DEBUG */

opensuse 12.3 will be released on 13.03. I do not know which additional test
is activated there ...


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to