#46543: expl_act_not_enabl() repetitive unit_owner(punit) Open Date: 2023-01-18 17:20 Last Update: 2023-01-22 05:17 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/46543 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46543 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-01-22 05:17 Updated by: cazfi * Status Update from Open to Closed * Resolution Update from Accepted to Fixed --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Closed Priority: 5 - Medium MileStone: 3.0.6 Component: Server Severity: 5 - Medium Resolution: Fixed --------------------------------------------------------------------- Ticket details: S3_0 clang analyzer warning shows that expl_act_not_enabl() has multiple unit_owner(punit) calls while it already knows the result (but the compiler can't know that the owner is the same, thus being unable to optimize and also causing clang analyzer to consider the possibility that unit_owner() suddenly returns NULL) -- 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/46543 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46543