チケット #48265

fit_nationset_to_players() garbage misfits[i] clang analyzer warning

登録: 2023-06-21 14:52 最終更新: 2023-07-01 07:41

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

詳細

Clang analyzer gives a warning about fit_nationset_to_players() (this is from S3_2):

../../../src/server/plrhand.c:2668:23: warning: Assigned value is garbage or undefined [core.uninitialized.Assign]
        least_misfits = misfits[i];
                      ^ ~~~~~~~~~~

Likely the warning is caused just by the fact that there's multiple nation_set_count() calls, and the compiler cannot know that they will always (well, at least they should) return the same value.

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

2023-06-21 14:52 更新者: cazfi
  • 新しいチケット "fit_nationset_to_players() grabage misfitsi clang analyzer warning" が作成されました
2023-06-21 14:52 更新者: cazfi
  • 概要が更新されました
2023-06-22 12:50 更新者: cazfi
  • 概要が更新されました
2023-06-22 12:57 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
2023-06-24 02:24 更新者: cazfi
  • 詳細が更新されました
2023-06-25 06:39 更新者: cazfi
コメント

Pushed to branches other than S3_0 (in soft freeze). Will be pushed there after 3.0.8 release.

2023-07-01 07:41 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました
コメント

Pushed to branches other than S3_0 (in soft freeze). Will be pushed there after 3.0.8 release.

編集

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