mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-04 06:23:11 +08:00
fix(refr): initializing row_cnt is to silence the warning (#3309)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
+1
-1
@@ -902,7 +902,7 @@ void refr_obj(lv_draw_ctx_t * draw_ctx, lv_obj_t * obj)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t row_cnt;
|
int32_t row_cnt = 0;
|
||||||
lv_draw_ctx_t * new_draw_ctx = lv_mem_alloc(disp_refr->driver->draw_ctx_size);
|
lv_draw_ctx_t * new_draw_ctx = lv_mem_alloc(disp_refr->driver->draw_ctx_size);
|
||||||
LV_ASSERT_MALLOC(new_draw_ctx);
|
LV_ASSERT_MALLOC(new_draw_ctx);
|
||||||
if(new_draw_ctx == NULL) {
|
if(new_draw_ctx == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user