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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-09-18 13:45:03 +08:00 committed by GUIDINGLI
parent 17692ffc5f
commit dbdba4c254

View File

@ -47,6 +47,7 @@ CFLAGS += -I$(DUKTAPE_UNPACK)/extras/console
CFLAGS += -I$(DUKTAPE_UNPACK)/extras/print-alert CFLAGS += -I$(DUKTAPE_UNPACK)/extras/print-alert
CFLAGS += -DDUK_CMDLINE_CONSOLE_SUPPORT CFLAGS += -DDUK_CMDLINE_CONSOLE_SUPPORT
CFLAGS += -DDUK_CMDLINE_PRINTALERT_SUPPORT CFLAGS += -DDUK_CMDLINE_PRINTALERT_SUPPORT
CFLAGS += -Wno-unused-but-set-variable
$(DUKTAPE_TARBALL): $(DUKTAPE_TARBALL):
$(Q) echo "Downloading $(DUKTAPE_TARBALL)" $(Q) echo "Downloading $(DUKTAPE_TARBALL)"