#48081: show_full_citybar() clang analyzer warnings Open Date: 2023-05-27 06:54 Last Update: 2023-05-27 06:54 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48081 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48081 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-05-27 06:54 Updated by: cazfi * New Ticket "show_full_citybar() clang analyzer warnings" created --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: 3.0.8 Component: Client common Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: Seen on S3_0: clang analyzer gives NULL dereference warnings about how show_full_citybar() uses 'width' and 'height'. This is bogus, as they are never NULL. Simply telling that with nonnull attribute seems to be enough to resolve those warnings. -- 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/48081 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48081