Have to disagree with you here, totally depends on the platform and if you know what you’re doing. Compiling with this option can lead to unaligned memory accesses. On some architectures, most ARM ones for example, unaligned memory accesses lead to hard faults at runtime.
You're thinking of `#pragma pack`. `-Wpadded` just warns about non-optimal layout.
Whoops, yes my bad. -Wpacked will just issue the warning, not actually do the packing!
Wait, doesn't the compiler produce the appropriate code for accessing the packed values without using unaligned memory access if the target platform doesn't support that?