任务单 #45233

sdl2: Clang analyzer warning about division by zero non_open_size

开放日期: 2022-07-25 21:59 最后更新: 2022-08-14 23:20

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
1

Details

Clang analyzer gives warning about division by zero from sdl2-client next_prev_city_dlg_callback(). That's not a real bug, as the function is never called when player has zero cities, and there's already an assert against the situation. Will need just minor refactoring the satisfy clang.

任务单历史 (3/4 Histories)

2022-07-25 21:59 Updated by: cazfi
  • New Ticket "sdl2: Clang analyzer warning about division by zero non_open_size" created
2022-08-06 10:45 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
  • 里程碑 Update from (无) to 3.0.4 (关闭)
2022-08-14 23:20 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名