チケット #45541

pick_random_tech_to_lose() compile error

登録: 2022-09-01 08:45 最終更新: 2022-10-09 11:30

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

詳細

I've got a compile error from pick_random_tech_to_lose() on a meson based build with -Doptimization=3, and gcc-12.

This looks somewhat familiar. Likely this is what we resolved with #42885 for the autotools side. What I didn't realize at the time autotools failure was being investigated is that advance_count(); is not called ONLY within the iterator macro, but pick_random_tech_to_lose() calls it also before the iteration. That's another reason for the compiler to be worried about its return values.

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

2022-09-01 08:45 更新者: cazfi
  • 新しいチケット "pick_random_tech_to_lose() compile error" が作成されました
2022-09-01 10:35 更新者: cazfi
コメント

Reply To cazfi

What I didn't realize at the time autotools failure was being investigated is that advance_count(); is not called ONLY within the iterator macro, but pick_random_tech_to_lose() calls it also before the iteration. That's another reason for the compiler to be worried about its return values.

That was not the main issue here, but raised #45542 about it - I got mostly ready patch for it, when testing various things, anyway.

2022-09-01 10:57 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
  • マイルストーン(未割り当て) から 3.1.0 (完了済み) に更新されました
  • コンポーネント(未割り当て) から General に更新されました
コメント

I don't think we need this to S3_0 at the moment. There's no meson based build there, and autotools based build usually has the relevant warning turned off. Though it's possible that we need this later, for clang analyzer builds that handle compiler flags a bit differently from normal build.

2022-09-07 06:26 更新者: cazfi
コメント

Targeting to S3_0 after all, but only after 3.0.4 release (in 3.0.5 cycle). Patch attached. Will not wait with S3_1 and master, but push those ones soon.

2022-09-07 10:50 更新者: cazfi
コメント

Reply To cazfi

Will not wait with S3_1 and master, but push those ones soon.

Pushed.

2022-10-09 11:30 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

編集

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