待辦事項 #47608

AI: Scramble clang analyzer warning

啟用日期: 2023-03-20 15:14 最後更新: 2023-04-03 10:36

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

細節

S3_2 clang analyzer warning:

../../../../src/ai/default/daimilitary.c:778:30: warning: The left operand of '>' is a garbage value [core.UndefinedBinaryOperatorResult]
best_non_scramble[i] = MAX(best_non_scramble[i], 0);

../../../../src/utility/shared.h:54:23: note: expanded from macro 'MAX'
#define MAX(x,y) (((x)>(y))?(x):(y))

Ticket History (3/4 Histories)

2023-03-20 15:14 Updated by: cazfi
  • New Ticket "AI: Scramble clang analyzer warning" created
2023-04-01 14:14 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
  • 里程碑 Update from (無) to 3.1.0-beta2 (closed)
2023-04-03 10:36 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入