From dbdba4c254aad04d78d54c6de1445f64d2b7a4dc Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 18 Sep 2023 13:45:03 +0800 Subject: [PATCH] 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 --- 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)"