[Freeciv-tickets] [freeciv] #45961: map_claim_base(): Allocate could_see_unit only when needed

Back to archive index
OSDN Ticket System norep****@osdn*****
Mon Oct 24 13:52:26 JST 2022


#45961: map_claim_base(): Allocate could_see_unit only when needed

  Open Date: 2022-10-24 07:52
Last Update: 2022-10-24 07:52

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

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

Last Changes/Comment on this Ticket:
2022-10-24 07:52 Updated by: cazfi
 * New Ticket "map_claim_base(): Allocate could_see_unit only when needed" created


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

      Reporter: cazfi
         Owner: (None)
          Type: Patches
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.0.5
     Component: Server
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

could_see_unit in map_claim_base() is only used when pextra->eus != EUS_NORMAL. Also allocate it only in those cases.
Clang analyzer warning made me to look at that code, but this change (alone) is somewhat unlikely to fix the warning.

-- 
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/45961
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45961



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