generate an Info message for inefficient structure packing
Since PC-Lint already has the size and alignment information, it could determine if structures members are not arranged most efficiently.
For example, in a standard 32-bit system, a structure defined as
is not most efficiently arranged, requiring an additional padding byte between b and c to achieve the necessary alignment for c. A more efficient method would be to define foo as
I think Lint could determine this and generate some Info message for struct name.
Mike Diack commented
Note: By the way the PVS-Studio tool already performs this check about optimising structure alignment.