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

                 Summary: "-DNDEBUG" flag messing fc_assert_fail()
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Mon 07 Dec 2015 07:01:32 AM EET
                Category: bootstrap
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: Ready For Test
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.6.0, 3.0.0

    _______________________________________________________

Details:

-DNDEBUG flag inherited from some .pc file (or similar) causes
fc_assert_fail() not to get compiled in. Yet it's not defined as empty macro
by the header -> link time errors when callers do not find it.

Attached fix makes also the .c -file to check FREECIV_NDEBUG instead of
NDEBUG.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 07 Dec 2015 07:01:32 AM EET  Name: FreecivNDebugAssertDisable.patch 
Size: 576B   By: cazfi

<http://gna.org/bugs/download.php?file_id=25920>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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