13-02-2015, 09:47 AM
The implementation of an object need only be hidden if all pointers to that type in a translation unit are never dereferenced and there are no other reasons for the internal details of the structure/union to be known.
In the above example "ptrX a" is complaint, because member “i1†from “struct X†is accessed elsewhere in the translation unit.
In the above example "ptrX a" is complaint, because member “i1†from “struct X†is accessed elsewhere in the translation unit.
Posted by and on behalf of the MISRA C Working Group