ron minnich wrote:
not sure where this is, but why are we using packed anyway? it's just asking for trouble.
Because without packed you can not use structs to describe hardware.
GCC is allowed to change the alignment of struct members at will. And it does.
Just curious: Why would you say packed is asking for trouble?