#46300: gcc-13: Warning about map_claim_base() could_see_unit potentially used uninitalized Open Date: 2022-12-17 08:02 Last Update: 2022-12-17 13:43 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/46300 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46300 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-12-17 13:43 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted * Milestone Update from (None) to 3.0.6 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.6 Component: Server Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: gcc-13 gives a warning about could_see_unit in map_claim_base() potentially being used uninitialized. It's heuristics are off, I think. But we still need to avoid 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/46300 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46300