On Tue, Oct 21, 2025 at 09:43:28AM -0700, [email protected] wrote: > I would go futher and suggest that the pattern of: > > type foo __free(free_foo) = NULL; > > ...be made into a warning because that easily leads to situations where > declaration order is out of sync with allocation order. I.e. can be made > technically correct, but at a level of cleverness that undermines the > benefit.
To be honest, I'm not sure what you're saying here... I have written code like this. There are 515 places which use this format. I think it would be a controversial change. $ git grep __free | grep "= NULL" | wc -l 515 regards, dan carpenter
