待辦事項 #44395

select_tgt_extra(): error: 'default_extra' may be used uninitialized in this function

啟用日期: 2022-04-16 10:28 最後更新: 2022-05-01 06:07

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

細節

Seen in S3_0 gtk3-client (for some reason only in debug+ndebug build):

../../../../src/client/gui-gtk-3.0/unitselextradlg.c: In function 'select_tgt_extra':
../../../../src/client/gui-gtk-3.0/unitselextradlg.c:232:75: error: 'default_extra' may be used uninitialized in this function (-Werror=maybe-uninitialized)

232 | g_object_set_data(G_OBJECT(dlg), "target", GINT_TO_POINTER(default_extra->id));

Ticket History (3/6 Histories)

2022-04-16 10:28 Updated by: cazfi
  • New Ticket "select_tgt_extra(): error: 'default_extra' may be used uninitialized in this function" created
2022-04-19 10:44 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
2022-05-01 06:07 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入