[Freeciv-tickets] [freeciv] #44569: local_ave_elevation() clang analyzer div by zero warning

Back to archive index
OSDN Ticket System norep****@osdn*****
Mon May 30 01:06:18 JST 2022


#44569: local_ave_elevation() clang analyzer div by zero warning

  Open Date: 2022-05-12 15:13
Last Update: 2022-05-29 19:06

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

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

Last Changes/Comment on this Ticket:
2022-05-29 19:06 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.2
     Component: Server
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

Ticket details:

Clang analyzer thinks that 'n' in local_ave_elevation() could be zero when dividing by it. It can't as there's the center tile even in one tile map. Silence the warning anyway.

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



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