lvgl/makefile: workaround for lvgl.v8

Since this change is only merged into the lvgl.v9, let us workaround for v8:
 37835260ca

 ./lvgl/src/core/lv_obj.c:363:25: warning: variable 'x' set but not used [-Wunused-but-set-variable]
   363 |         static uint32_t x = 0;
       |                         ^
 1 warning generated.

CFLAGS += -Wno-unused-but-set-variable

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-11-28 17:52:18 +08:00 committed by Xiang Xiao
parent af6e4d2cb9
commit f289cdb2ec

View File

@ -29,6 +29,14 @@ LVGL_DIR_NAME = lvgl
CFLAGS += -Wno-format -Wno-format-security -Wno-unused-variable
# Since this change is only merged into the lvgl.v9, let us workaround for v8
# ./lvgl/src/core/lv_obj.c:363:25: warning: variable 'x' set but not used [-Wunused-but-set-variable]
# 363 | static uint32_t x = 0;
# | ^
# 1 warning generated.
CFLAGS += -Wno-unused-but-set-variable
-include ./lvgl/lvgl.mk
CSRCS += port/lv_port.c