summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2020-12-08 14:12:12 -0500
committerFranklin Wei <franklin@rockbox.org>2020-12-08 14:12:12 -0500
commit792f05f82a85eeba6196da7b2d2aa34c6bbbaa2a (patch)
tree1f147a0fe3337e1a6cfe27f75e886b62189ba8d6
parent40b6897f4fefb652432097da00c9c2bc5d0a655b (diff)
downloadrockbox-792f05f82a.tar.gz
rockbox-792f05f82a.zip
lcd: Wrap anonymous union initializer in braces
GCC 4.9.4 is apparently smart enough to compile this, but 4.4.4 is not. Change-Id: I186f969cbad4c701936ab738f585efea07421d2e
-rw-r--r--firmware/drivers/lcd-color-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-color-common.c b/firmware/drivers/lcd-color-common.c
index 3abc671770..935f4e59dd 100644
--- a/firmware/drivers/lcd-color-common.c
+++ b/firmware/drivers/lcd-color-common.c
@@ -47,7 +47,9 @@ static long lcd_backdrop_offset IDATA_ATTR = 0;
/* shouldn't be changed unless you want system-wide framebuffer changes! */
struct frame_buffer_t lcd_framebuffer_default =
{
- .fb_ptr = &lcd_static_framebuffer[0][0],
+ {
+ .fb_ptr = &lcd_static_framebuffer[0][0]
+ },
.get_address_fn = &lcd_frameaddress_default,
.stride = STRIDE_MAIN(LCD_WIDTH, LCD_HEIGHT),
.elems = (LCD_FBWIDTH*LCD_FBHEIGHT),