vvuksanovic wrote:

I think I will add an exception for zero size allocations. That is likely done 
on purpose and that change should eliminate a lot of the noise.

For the `pykdtree` case, that code is a bit questionable as it relies on not 
using a part of a structure. I think that emitting a warning there makes sense.

I am open to suggestions for ways to suppress the warning. Maybe we can only 
check implicit casts, but that might miss some actual problems. If there is a 
lot of noise, gating this diagnostic behind `-Wextra` like gcc does is an 
option.

https://github.com/llvm/llvm-project/pull/150028
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to