I've noticed this error raises every time I'm accessing member of packed struct
- How can I disable it specifically for functions that handle the misalignment? (safe_unaligned_val_16/32/64 - constructs the output by manually taking byte after byte like memcpy)
- Does GCC make some optimization if I pass struct pointers to a function? I've noticed some optimizations like when you have a struct with 4 bytes of primitive types, it just passes that value to a single 32 bit register when the function doesn't change the value of the primitives in. Elaborate if you know anything like this ^
Thanks, Greg