balazske wrote: Would it make sense to extend the warning to any pointer cast, not only `struct` types? A cast from `int *` to `double *` for example can be similar problematic. (But in some cases like a converting a struct pointer to the type of the first field of the struct can be more difficult to handle. It would work better to check for type or data layout compatibility.)
https://github.com/llvm/llvm-project/pull/153428 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits