1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

Merge pull request #957 from manison/patch/fix-vla-compile-error

Fix error on compiler without VLA support
This commit is contained in:
embeddedt 2019-03-18 08:56:48 -04:00 committed by GitHub
commit d965db9fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -630,7 +630,7 @@ static lv_res_t lv_img_built_in_decoder_line_alpha(lv_coord_t x, lv_coord_t y, l
# if LV_COMPILER_VLA_SUPPORTED
uint8_t fs_buf[w];
# else
uint8_t fs_buf[LV_HOR_RES];
uint8_t fs_buf[LV_HOR_RES_MAX];
# endif
#endif
const uint8_t * data_tmp = NULL;
@ -717,7 +717,7 @@ static lv_res_t lv_img_built_in_decoder_line_indexed(lv_coord_t x, lv_coord_t y,
# if LV_COMPILER_VLA_SUPPORTED
uint8_t fs_buf[w];
# else
uint8_t fs_buf[LV_HOR_RES];
uint8_t fs_buf[LV_HOR_RES_MAX];
# endif
#endif
const uint8_t * data_tmp = NULL;