An object with pointer type shall not be converted to an unrelated pointer type, either directly or indirectly
An object with pointer type shall not be converted to an unrelated pointer type, either directly or indirectly.
The checker flags all pointer conversions including between a pointer to a
struct object and a pointer to the first member of the same
struct type.
Indirect conversions from a pointer to non-pointer type are not detected.
If you expect a rule violation but do not see it, refer to Coding Standard Violations Not Displayed.
| Group: Expressions |
| Category: Required |