Please sign in to comment.
subsys/cfb: improve font structure packing
The specified order of fields wastes space when the cfb_font_caps enum isn't packed. Reorder to avoid this behavior. Also remove the unnecessary array size on the extern symbol declaration, lest the compiler misinterpret the properties as being zero-length arrays rather than pointers. (The idiom is already technically using undefined behavior since we're relying on the linker rather than the language to produce an array from the individual declarations.) Signed-off-by: Peter A. Bigot <email@example.com>
- Loading branch information...
Showing with 5 additions and 5 deletions.