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

                 Summary: Compilation failure with --enable-debug
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: samedi 31.07.2010 à 16:34
                Category: None
                Severity: 4 - Important
                Priority: 1 - Later
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: trunk rev17633
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.3.0

    _______________________________________________________

Details:


savegame2.c: In function ‘sg_save_player_cities’:
savegame2.c:3983: error: format ‘%lu’ expects type ‘long unsigned
int’, but argument 8 has type ‘size_t’
savegame2.c:3983: error: format ‘%lu’ expects type ‘long unsigned
int’, but argument 9 has type ‘unsigned int’
savegame2.c: In function ‘sg_save_player_vision’:
savegame2.c:5006: error: format ‘%lu’ expects type ‘long unsigned
int’, but argument 8 has type ‘size_t’
savegame2.c:5006: error: format ‘%lu’ expects type ‘long unsigned
int’, but argument 9 has type ‘unsigned int’


_size_t_ isn't always a _long unsigned int_, so you must cast it calling it
as a format argument.





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


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

Reply via email to