待辦事項 #42885

Disable -Warray-bounds

啟用日期: 2021-09-20 06:52 最後更新: 2021-09-24 19:44

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

細節

gcc-12 development version gives an array-bounds warning about techtools.c code. I reported that to gcc bugtracker ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102405 ), but the report was deemed invalid; compiler does not have enough information to know that the warning is baseless so they consider it ok to show. Unfortunately I don't see any sensible way to rework the code so that it would not trigger the warning, and -Werror (which we use in development with --enable-debug) turns it to an error. The only solution seems to be to disable -Warray-bounds warnings completely.

Ticket History (3/6 Histories)

2021-09-20 06:52 Updated by: cazfi
  • New Ticket "Disable -Warray-bounds" created
2021-09-20 08:37 Updated by: cazfi
  • 處理結果 Update from to Accepted
2021-09-24 19:44 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入