This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new f289cdb2e lvgl/makefile: workaround for lvgl.v8
f289cdb2e is described below

commit f289cdb2ec1fa4f7b9d3cf7aad8f53450015e644
Author: chao an <anc...@xiaomi.com>
AuthorDate: Tue Nov 28 17:52:18 2023 +0800

    lvgl/makefile: workaround for lvgl.v8
    
     Since this change is only merged into the lvgl.v9, let us workaround for 
v8:
     
https://github.com/hubbell2019/LVGL/commit/37835260ca30a5b191d8b55d0d2b49892aad7a21
    
     ./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 <anc...@xiaomi.com>
---
 graphics/lvgl/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/graphics/lvgl/Makefile b/graphics/lvgl/Makefile
index 912f87908..c303afaf5 100644
--- a/graphics/lvgl/Makefile
+++ b/graphics/lvgl/Makefile
@@ -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

Reply via email to