[Freeciv-tickets] [freeciv] #48081: show_full_citybar() clang analyzer warnings

Back to archive index
OSDN Ticket System norep****@osdn*****
Tue May 30 15:04:43 JST 2023


#48081: show_full_citybar() clang analyzer warnings

  Open Date: 2023-05-27 06:54
Last Update: 2023-05-30 09:04

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-30 09:04 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.8
     Component: Client common
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

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



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