待辦事項 #45233

sdl2: Clang analyzer warning about division by zero non_open_size

啟用日期: 2022-07-25 21:59 最後更新: 2022-08-14 23:20

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
1

細節

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.

Ticket History (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 (closed)
2022-08-14 23:20 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入