URL:
  <http://gna.org/bugs/?20585>

                 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: 

    _______________________________________________________

Details:

I get the following error on opensuse 12.3 (see
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=freeciv-2.4svn&project=home%3Asyntron%3Afreeciv&repository=openSUSE_12.3_Update_standard).
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
[-Werror=unused-but-set-variable]
[  608s] cc1: all warnings being treated as errors
[  608s] make[3]: *** [citytools.lo] Error 1
[  608s] make[3]: Leaving directory
`/home/abuild/rpmbuild/BUILD/freeciv-2.4.svn.22473/server'
[  608s] make[2]: *** [all-recursive] Error 1
[  608s] make[2]: Leaving directory
`/home/abuild/rpmbuild/BUILD/freeciv-2.4.svn.22473/server'
[  608s] make[1]: *** [all-recursive] Error 1
[  608s] make[1]: Leaving directory
`/home/abuild/rpmbuild/BUILD/freeciv-2.4.svn.22473'
[  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:

  <http://gna.org/bugs/?20585>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to