チケット #44679

sdl2: Clang analyze div by zero warning about popup_goto_airlift_dialog()

登録: 2022-05-26 15:45 最終更新: 2022-06-16 15:58

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
2

詳細

Clang analyze gives a div by zero warning about sdl2-client popup_goto_airlift_dialog() line "if (!((i + 1) % col)) {"

Seems to me that it could only happen when number of players allied to the client player (including oneself) is zero. That could happen if the function would ever be called by a global observer, but I don't think it ever happens. So no real bug there - just silencing the warning (and becoming more robust for any future changes where global observer could call the function)

チケットの履歴 (5 件中 3 件表示)

2022-05-26 15:45 更新者: cazfi
  • 新しいチケット "sdl2: Clang analyze div by zero warning about popup_goto_airlift_dialog()" が作成されました
2022-06-09 07:49 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
  • マイルストーン(未割り当て) から 3.0.3 (完了済み) に更新されました
2022-06-16 15:58 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする