devkitPro / libnds

C library for Nintendo DS
http://devkitpro.org/viewforum.php?f=38
Other
324 stars 46 forks source link

Remove __packed__ attribute from header structs #46

Closed chishm closed 4 years ago

chishm commented 4 years ago

The attribute causes GCC warnings when -Waddress-of-packed-member is enabled. It is not needed because the structs are already laid out in a packed way.

To verify that the structs remain as expected, add compile-time asserts.

chishm commented 4 years ago

This is the PR requested by Wintermute.