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

                 Summary: FTBFS with --enable-debug=no
                 Project: Freeciv
            Submitted by: anbe
            Submitted on: Sunday 03/07/2010 at 00:00
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: trunk
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:


../../server/settlers.c: In function ‘initialize_infrastructure_cache’:
../../server/settlers.c:1263: error: ‘old_terrain’ undeclared (first use
in this function)
../../server/settlers.c:1263: error: (Each undeclared identifier is reported
only once
../../server/settlers.c:1263: error: for each function it appears in.)
../../server/settlers.c:1263: error: ‘old_special’ undeclared (first use
in this function)


The reason is that old_foo are declared in an #ifndef NDEBUG block, but
fc_assert(expression) evaluates expression regardless of the NDEBUG setting.
This greatly diverges form the behaviour of assert(expression).




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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