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

                 Summary: Compiler warning in check_edited_tile_terrains() in
non-debug builds
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Wed Sep  4 00:20:07 2013
                Category: None
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.4.0-RC2
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 

    _______________________________________________________

Details:

Noticed scrolling by when making a non-debug build of 2.4.0-RC2:


edithand.c: In function 'check_edited_tile_terrains':
edithand.c:148:3: warning: variable 'ptile' set but not used
[-Wunused-but-set-variable]


The relevant code:

  tile_hash_iterate(modified_tile_table, ptile) {
    sanity_check_tile(ptile);
  } tile_hash_iterate_end;


sanity_check_tile() decays to nothing in non-debug, non-beta builds, so the
ptile declared by tile_hash_iterate() becomes useless.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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