[Freeciv-tickets] [freeciv] #43871: luascript_func_check(): variable used uninitialized on FREECIV_NDEBUG build

Back to archive index
OSDN Ticket System norep****@osdn*****
Fri Mar 4 04:14:50 JST 2022


#43871: luascript_func_check(): variable used uninitialized on FREECIV_NDEBUG build

  Open Date: 2022-02-15 13:00
Last Update: 2022-03-03 21:14

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/43871
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43871

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-03-03 21:14 Updated by: cazfi
 * Resolution Update from Accepted to None

Comment:

As fc_assert_ret_val() is one of the macros of the fc_assert family that we still have active even on --disable-debug builds, there's no *currently* functional bug, and this patch causes compilation failure instead.
Even in case of fc_assert_ret_val(), it's forbidden to have functionality inside it, for the purposes of being able to disable them on ndebug builds on some future versions. So this patch is still needed, just have to fix the compile error.

---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.0.1
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

luascript_func_check() sets variable pfunc within fc_assert_ret_val(), i.e., it's not set in FREECIV_NDEBUG builds. Later code expects it to be set.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/43871
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43871



More information about the Freeciv-tickets mailing list
Back to archive index