Ticket #46543

expl_act_not_enabl() repetitive unit_owner(punit)

Open Date: 2023-01-19 00:20 Last Update: 2023-01-22 12:17

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
3

Details

S3_0 clang analyzer warning shows that expl_act_not_enabl() has multiple unit_owner(punit) calls while it already knows the result (but the compiler can't know that the owner is the same, thus being unable to optimize and also causing clang analyzer to consider the possibility that unit_owner() suddenly returns NULL)

Ticket History (3/6 Histories)

2023-01-19 00:20 Updated by: cazfi
  • New Ticket "expl_act_not_enabl() repetitive unit_owner(punit)" created
2023-01-19 00:55 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2023-01-22 12:17 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login