You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by li...@apache.org on 2023/09/19 03:27:28 UTC
[nuttx-apps] 02/02: interpreters/duktape: Add -Wno-unused-but-set-variable to CLAGS
This is an automated email from the ASF dual-hosted git repository.
ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit dbdba4c254aad04d78d54c6de1445f64d2b7a4dc
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Sep 18 13:45:03 2023 +0800
interpreters/duktape: Add -Wno-unused-but-set-variable to CLAGS
To fix error: variable 'num_stmts' set but not used [-Werror,-Wunused-but-set-variable]
duk_int_t num_stmts;
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
interpreters/duktape/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/interpreters/duktape/Makefile b/interpreters/duktape/Makefile
index 699fb4f79..37dacaaa4 100644
--- a/interpreters/duktape/Makefile
+++ b/interpreters/duktape/Makefile
@@ -47,6 +47,7 @@ CFLAGS += -I$(DUKTAPE_UNPACK)/extras/console
CFLAGS += -I$(DUKTAPE_UNPACK)/extras/print-alert
CFLAGS += -DDUK_CMDLINE_CONSOLE_SUPPORT
CFLAGS += -DDUK_CMDLINE_PRINTALERT_SUPPORT
+CFLAGS += -Wno-unused-but-set-variable
$(DUKTAPE_TARBALL):
$(Q) echo "Downloading $(DUKTAPE_TARBALL)"