Ownership of a structure resides with the creator of that structure.
Priority
Strongly recommended
Severity level
4
Description
Ownership of a structure resides with the creator of that structure, so do not add or remove fields from an existing structure outside of the function in which it was created.
Rationale
Adding or removing fields from an existing structure outside of the function in which it was created reduces the robustness of the code. Related to coder compatibility, in generated code, adding a new field to a structure that has already been read or indexed will cause an error.