Ticket #44569

local_ave_elevation() clang analyzer div by zero warning

Open Date: 2022-05-12 21:13 Last Update: 2022-05-30 01:06

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
2

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 History (3/5 Histories)

2022-05-12 21:13 Updated by: cazfi
  • New Ticket "local_ave_elevation() clang analyzer div by zero warning" created
2022-05-15 13:39 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
  • Milestone Update from (None) to 3.0.2 (closed)
2022-05-30 01:06 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login